diff options
author | Heiko Carstens <hca@linux.ibm.com> | 2022-03-06 11:15:27 +0100 |
---|---|---|
committer | Vasily Gorbik <gor@linux.ibm.com> | 2022-03-08 00:33:01 +0100 |
commit | 52b739e2780c7a15e5be06f1691d92ba5f962f79 (patch) | |
tree | 0402fb86ad4746b810002bab622313d62d164463 /arch/s390/kernel/traps.c | |
parent | s390/signal: fix typo in comments (diff) | |
download | linux-52b739e2780c7a15e5be06f1691d92ba5f962f79.tar.xz linux-52b739e2780c7a15e5be06f1691d92ba5f962f79.zip |
s390/traps: get rid of magic cast for program interruption code
Add a proper union in lowcore to reflect architecture and get rid of a
"magic" cast in order to read the full program interruption code.
Signed-off-by: Heiko Carstens <hca@linux.ibm.com>
Signed-off-by: Vasily Gorbik <gor@linux.ibm.com>
Diffstat (limited to 'arch/s390/kernel/traps.c')
-rw-r--r-- | arch/s390/kernel/traps.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/s390/kernel/traps.c b/arch/s390/kernel/traps.c index 7f0fadd10d68..a3c94dfcbe16 100644 --- a/arch/s390/kernel/traps.c +++ b/arch/s390/kernel/traps.c @@ -297,7 +297,7 @@ void noinstr __do_pgm_check(struct pt_regs *regs) unsigned int trapnr; irqentry_state_t state; - regs->int_code = *(u32 *)&S390_lowcore.pgm_ilc; + regs->int_code = S390_lowcore.pgm_int_code; regs->int_parm_long = S390_lowcore.trans_exc_code; state = irqentry_enter(regs); |