diff options
author | Heiko Carstens <[email protected]> | 2021-06-14 14:49:31 +0200 |
---|---|---|
committer | Vasily Gorbik <[email protected]> | 2021-06-18 16:41:23 +0200 |
commit | 88c2510cecb7e2b518e3c4fdf3cf0e13ebe9377c (patch) | |
tree | 65ecf94b8fad64012b76c139390946b630fa7235 /scripts/gdb/linux/tasks.py | |
parent | d66a4c7f760bb13222af9d69a6dca893130d193f (diff) |
s390/ipl_parm: fix program check new psw handling
The __diag308() inline asm temporarily changes the program check new
psw to redirect a potential program check on the diag instruction.
Restoring of the program check new psw is done in C code behind the
inline asm.
This can be problematic, especially if the function is inlined, since
the compiler can reorder instructions in such a way that a different
instruction, which may result in a program check, might be executed
before the program check new psw has been restored.
To avoid such a scenario move restoring into the inline asm. For
consistency reasons move also saving of the original program check new
psw into the inline asm.
Signed-off-by: Heiko Carstens <[email protected]>
Signed-off-by: Vasily Gorbik <[email protected]>
Diffstat (limited to 'scripts/gdb/linux/tasks.py')
0 files changed, 0 insertions, 0 deletions