diff options
| -rw-r--r-- | arch/s390/include/asm/compat.h | 16 | ||||
| -rw-r--r-- | arch/s390/include/asm/elf.h | 1 | ||||
| -rw-r--r-- | arch/s390/include/uapi/asm/ptrace.h | 20 |
3 files changed, 17 insertions, 20 deletions
diff --git a/arch/s390/include/asm/compat.h b/arch/s390/include/asm/compat.h index 1f1a4490cdeb..da3df9f6eded 100644 --- a/arch/s390/include/asm/compat.h +++ b/arch/s390/include/asm/compat.h | |||
| @@ -70,6 +70,22 @@ typedef u32 compat_ulong_t; | |||
| 70 | typedef u64 compat_u64; | 70 | typedef u64 compat_u64; |
| 71 | typedef u32 compat_uptr_t; | 71 | typedef u32 compat_uptr_t; |
| 72 | 72 | ||
| 73 | typedef struct { | ||
| 74 | u32 mask; | ||
| 75 | u32 addr; | ||
| 76 | } __aligned(8) psw_compat_t; | ||
| 77 | |||
| 78 | typedef struct { | ||
| 79 | psw_compat_t psw; | ||
| 80 | u32 gprs[NUM_GPRS]; | ||
| 81 | u32 acrs[NUM_ACRS]; | ||
| 82 | u32 orig_gpr2; | ||
| 83 | } s390_compat_regs; | ||
| 84 | |||
| 85 | typedef struct { | ||
| 86 | u32 gprs_high[NUM_GPRS]; | ||
| 87 | } s390_compat_regs_high; | ||
| 88 | |||
| 73 | struct compat_timespec { | 89 | struct compat_timespec { |
| 74 | compat_time_t tv_sec; | 90 | compat_time_t tv_sec; |
| 75 | s32 tv_nsec; | 91 | s32 tv_nsec; |
diff --git a/arch/s390/include/asm/elf.h b/arch/s390/include/asm/elf.h index 1bfdf24b85a2..27ec2c3f95ac 100644 --- a/arch/s390/include/asm/elf.h +++ b/arch/s390/include/asm/elf.h | |||
| @@ -119,6 +119,7 @@ | |||
| 119 | */ | 119 | */ |
| 120 | 120 | ||
| 121 | #include <asm/ptrace.h> | 121 | #include <asm/ptrace.h> |
| 122 | #include <asm/compat.h> | ||
| 122 | #include <asm/user.h> | 123 | #include <asm/user.h> |
| 123 | 124 | ||
| 124 | typedef s390_fp_regs elf_fpregset_t; | 125 | typedef s390_fp_regs elf_fpregset_t; |
diff --git a/arch/s390/include/uapi/asm/ptrace.h b/arch/s390/include/uapi/asm/ptrace.h index a5ca214b34fd..3aa9f1ec5b29 100644 --- a/arch/s390/include/uapi/asm/ptrace.h +++ b/arch/s390/include/uapi/asm/ptrace.h | |||
| @@ -215,12 +215,6 @@ typedef struct | |||
| 215 | unsigned long addr; | 215 | unsigned long addr; |
| 216 | } __attribute__ ((aligned(8))) psw_t; | 216 | } __attribute__ ((aligned(8))) psw_t; |
| 217 | 217 | ||
| 218 | typedef struct | ||
| 219 | { | ||
| 220 | __u32 mask; | ||
| 221 | __u32 addr; | ||
| 222 | } __attribute__ ((aligned(8))) psw_compat_t; | ||
| 223 | |||
| 224 | #ifndef __s390x__ | 218 | #ifndef __s390x__ |
| 225 | 219 | ||
| 226 | #define PSW_MASK_PER 0x40000000UL | 220 | #define PSW_MASK_PER 0x40000000UL |
| @@ -295,20 +289,6 @@ typedef struct | |||
| 295 | unsigned long orig_gpr2; | 289 | unsigned long orig_gpr2; |
| 296 | } s390_regs; | 290 | } s390_regs; |
| 297 | 291 | ||
| 298 | typedef struct | ||
| 299 | { | ||
| 300 | psw_compat_t psw; | ||
| 301 | __u32 gprs[NUM_GPRS]; | ||
| 302 | __u32 acrs[NUM_ACRS]; | ||
| 303 | __u32 orig_gpr2; | ||
| 304 | } s390_compat_regs; | ||
| 305 | |||
| 306 | typedef struct | ||
| 307 | { | ||
| 308 | __u32 gprs_high[NUM_GPRS]; | ||
| 309 | } s390_compat_regs_high; | ||
| 310 | |||
| 311 | |||
| 312 | /* | 292 | /* |
| 313 | * Now for the user space program event recording (trace) definitions. | 293 | * Now for the user space program event recording (trace) definitions. |
| 314 | * The following structures are used only for the ptrace interface, don't | 294 | * The following structures are used only for the ptrace interface, don't |
