aboutsummaryrefslogtreecommitdiffstats
path: root/arch/s390/include/asm/lowcore.h
diff options
context:
space:
mode:
authorHeiko Carstens <hca@linux.ibm.com>2022-03-06 11:15:27 +0100
committerVasily Gorbik <gor@linux.ibm.com>2022-03-08 00:33:01 +0100
commit52b739e2780c7a15e5be06f1691d92ba5f962f79 (patch)
tree0402fb86ad4746b810002bab622313d62d164463 /arch/s390/include/asm/lowcore.h
parents390/signal: fix typo in comments (diff)
downloadlinux-dev-52b739e2780c7a15e5be06f1691d92ba5f962f79.tar.xz
linux-dev-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/include/asm/lowcore.h')
-rw-r--r--arch/s390/include/asm/lowcore.h9
1 files changed, 7 insertions, 2 deletions
diff --git a/arch/s390/include/asm/lowcore.h b/arch/s390/include/asm/lowcore.h
index 1262f5003acf..28a2c6ba795e 100644
--- a/arch/s390/include/asm/lowcore.h
+++ b/arch/s390/include/asm/lowcore.h
@@ -34,8 +34,13 @@ struct lowcore {
__u32 ext_int_code_addr;
};
__u32 svc_int_code; /* 0x0088 */
- __u16 pgm_ilc; /* 0x008c */
- __u16 pgm_code; /* 0x008e */
+ union {
+ struct {
+ __u16 pgm_ilc; /* 0x008c */
+ __u16 pgm_code; /* 0x008e */
+ };
+ __u32 pgm_int_code;
+ };
__u32 data_exc_code; /* 0x0090 */
__u16 mon_class_num; /* 0x0094 */
__u8 per_code; /* 0x0096 */