Skip to content

Commit

Permalink
s390/boot: change initial program check handler to disabled wait psw
Browse files Browse the repository at this point in the history
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]>
  • Loading branch information
hcahca committed May 6, 2022
1 parent 7347579 commit 84f4e1d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion arch/s390/boot/head.S
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ __HEAD
.org __LC_EXT_NEW_PSW # 0x1b0
.quad 0x0002000180000000,0x1b0 # disabled wait
.org __LC_PGM_NEW_PSW # 0x1d0
.quad 0x0000000180000000,startup_pgm_check_handler
.quad 0x0002000180000000,0x1d0 # disabled wait
.org __LC_IO_NEW_PSW # 0x1f0
.quad 0x0002000180000000,0x1f0 # disabled wait

Expand Down

0 comments on commit 84f4e1d

Please sign in to comment.