]> www.infradead.org Git - users/dwmw2/linux.git/commit
s390/nmi: Simplify ptregs setup
authorHeiko Carstens <hca@linux.ibm.com>
Mon, 22 Jul 2024 13:41:11 +0000 (15:41 +0200)
committerVasily Gorbik <gor@linux.ibm.com>
Tue, 23 Jul 2024 14:02:31 +0000 (16:02 +0200)
commit213400c4afd5c89fd8bd17d06addf145f6c8f0d5
tree2cd55ef06ed5a79d2fb3c29ed4f6ce2de7f0a732
parentbeb8cee06f9b8726616ba87783116cb8fb889c7a
s390/nmi: Simplify ptregs setup

The low level machine check handler code fills the ptregs structure
partially with the register contents present at machine check handler
entry and partially with contents from the machine check save area.

In case of a machine check the contents of all general purpose
registers are saved by the CPU to the machine check save area.
Therefore simplify the code and fill the ptregs structure by only
using the machine check save area as source.

Signed-off-by: Heiko Carstens <hca@linux.ibm.com>
Signed-off-by: Sven Schnelle <svens@linux.ibm.com>
Signed-off-by: Vasily Gorbik <gor@linux.ibm.com>
arch/s390/kernel/entry.S