diff options
author | Sven Schnelle <svens@linux.ibm.com> | 2021-05-10 21:10:16 +0200 |
---|---|---|
committer | Vasily Gorbik <gor@linux.ibm.com> | 2021-06-07 17:07:01 +0200 |
commit | 34bbeed07494cc0d64d0c7a953230883a4d78f6f (patch) | |
tree | 55c0f001e35b8aa9c07cb2d646dc7f90d09af5e4 /arch/s390/include/asm/tpi.h | |
parent | s390/cio: add tpi.h header file (diff) | |
download | linux-34bbeed07494cc0d64d0c7a953230883a4d78f6f.tar.xz linux-34bbeed07494cc0d64d0c7a953230883a4d78f6f.zip |
s390: add struct tpi_info to struct pt_regs
To avoid casting ptrace members, add a union containing
both struct tpi_info and explicit int_code/int_parm members.
Signed-off-by: Sven Schnelle <svens@linux.ibm.com>
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/tpi.h')
-rw-r--r-- | arch/s390/include/asm/tpi.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/arch/s390/include/asm/tpi.h b/arch/s390/include/asm/tpi.h index f88911180b02..1ac538b8cbf5 100644 --- a/arch/s390/include/asm/tpi.h +++ b/arch/s390/include/asm/tpi.h @@ -5,6 +5,8 @@ #include <linux/types.h> #include <uapi/asm/schid.h> +#ifndef __ASSEMBLY__ + /* I/O-Interruption Code as stored by TEST PENDING INTERRUPTION (TPI). */ struct tpi_info { struct subchannel_id schid; @@ -17,4 +19,6 @@ struct tpi_info { u32 :12; } __packed __aligned(4); +#endif /* __ASSEMBLY__ */ + #endif /* _ASM_S390_TPI_H */ |