Skip to content

Commit 84f4e1d

Browse files
committed
s390/boot: change initial program check handler to disabled wait psw
The program check handler of the kernel image points to startup_pgm_check_handler. However an early program check which happens while loading the kernel image will jump to potentially random code, since the code of the program check handler is not yet loaded; leading to a program check loop. Therefore initialize it to a disabled wait psw and let the startup code set the proper psw when everything is in memory. Reviewed-by: Vasily Gorbik <[email protected]> Signed-off-by: Heiko Carstens <[email protected]>
1 parent 7347579 commit 84f4e1d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

arch/s390/boot/head.S

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ __HEAD
6969
.org __LC_EXT_NEW_PSW # 0x1b0
7070
.quad 0x0002000180000000,0x1b0 # disabled wait
7171
.org __LC_PGM_NEW_PSW # 0x1d0
72-
.quad 0x0000000180000000,startup_pgm_check_handler
72+
.quad 0x0002000180000000,0x1d0 # disabled wait
7373
.org __LC_IO_NEW_PSW # 0x1f0
7474
.quad 0x0002000180000000,0x1f0 # disabled wait
7575

0 commit comments

Comments
 (0)