summaryrefslogtreecommitdiff
path: root/lib/mpi/mpi-sub-ui.c
diff options
context:
space:
mode:
authorHeiko Carstens <hca@linux.ibm.com>2021-06-14 22:09:20 +0200
committerVasily Gorbik <gor@linux.ibm.com>2021-06-18 16:41:24 +0200
commitda9057576785aaab52e706e76c0475c85b77ec14 (patch)
treed69c79fe3e4159e30bdc21ce11640154385cda5d /lib/mpi/mpi-sub-ui.c
parent1b2f281f45afd5def728288df9732a74e8d12582 (diff)
s390/mem_detect: fix tprot() program check new psw handling
The tprot() 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 <hca@linux.ibm.com> Signed-off-by: Vasily Gorbik <gor@linux.ibm.com>
Diffstat (limited to 'lib/mpi/mpi-sub-ui.c')
0 files changed, 0 insertions, 0 deletions