]> git.baikalelectronics.ru Git - kernel.git/commit
s390/startup: add initial pgm check handler
authorVasily Gorbik <gor@linux.ibm.com>
Thu, 8 Aug 2019 11:50:02 +0000 (13:50 +0200)
committerVasily Gorbik <gor@linux.ibm.com>
Wed, 21 Aug 2019 10:41:43 +0000 (12:41 +0200)
commit5c52507447167cdaacdb540b6ebc06800e79e456
tree3462d3cdb9d48817dcf7e293e90e51f0c8435c2e
parent9941bb7b5997e71e2b5b196e728be2889fe7f067
s390/startup: add initial pgm check handler

The startup code is getting more complicated with features like kaslr and
secure boot in place. In a potential unexpected startup code crash case
the system would end up in a pgm check loop at address 0, overwriting
pgm check old psw value and just making debugging more complicated. To
avoid that introduce startup program check handler which is active
immediately after kernel start and until early_pgm_check_handler is set
in kernel/early.c. So it covers kernel relocation phase and transition
to it. This pgm check handler simply saves general/control registers and
psw in the save area which should guarantee that we still have something
to look at when standalone dumper is called without saving registers. And
it does disabled wait with a faulty address in the end.

Acked-by: Ilya Leoshkevich <iii@linux.ibm.com>
Signed-off-by: Vasily Gorbik <gor@linux.ibm.com>
arch/s390/boot/head.S