Skip to content

Commit

Permalink
s390/head: initialize all new psws
Browse files Browse the repository at this point in the history
Initialize all new psws with disabled wait psws, except for the restart new
psw. This way every unexpected exception, svc, machine check, or interrupt
is handled properly.

Reviewed-by: Vasily Gorbik <gor@linux.ibm.com>
Signed-off-by: Heiko Carstens <hca@linux.ibm.com>
  • Loading branch information
Heiko Carstens committed May 6, 2022
1 parent 84f4e1d commit aceb06d
Showing 1 changed file with 15 additions and 7 deletions.
22 changes: 15 additions & 7 deletions arch/s390/boot/head.S
Original file line number Diff line number Diff line change
Expand Up @@ -64,14 +64,22 @@ __HEAD
.long 0x02000690,0x60000050
.long 0x020006e0,0x20000050

.org __LC_RST_NEW_PSW # 0x1a0
# The restart psw points to ipl_entry, which allows to load a kernel image
# into memory and starting it by a psw restart on any cpu.
# All other default psw new locations contain a disabled wait psw where the
# address indicates which psw was loaded.
.org __LC_RST_NEW_PSW
.quad 0,IPL_START
.org __LC_EXT_NEW_PSW # 0x1b0
.quad 0x0002000180000000,0x1b0 # disabled wait
.org __LC_PGM_NEW_PSW # 0x1d0
.quad 0x0002000180000000,0x1d0 # disabled wait
.org __LC_IO_NEW_PSW # 0x1f0
.quad 0x0002000180000000,0x1f0 # disabled wait
.org __LC_EXT_NEW_PSW
.quad 0x0002000180000000,__LC_EXT_NEW_PSW
.org __LC_SVC_NEW_PSW
.quad 0x0002000180000000,__LC_SVC_NEW_PSW
.org __LC_PGM_NEW_PSW
.quad 0x0002000180000000,__LC_PGM_NEW_PSW
.org __LC_MCK_NEW_PSW
.quad 0x0002000180000000,__LC_MCK_NEW_PSW
.org __LC_IO_NEW_PSW
.quad 0x0002000180000000,__LC_IO_NEW_PSW

.org IPL_START
ipl_start:
Expand Down

0 comments on commit aceb06d

Please sign in to comment.