diff options
Diffstat (limited to 'include/asm-s390/elf.h')
| -rw-r--r-- | include/asm-s390/elf.h | 28 |
1 files changed, 14 insertions, 14 deletions
diff --git a/include/asm-s390/elf.h b/include/asm-s390/elf.h index 710646e64f7d..c0d629d61d3e 100644 --- a/include/asm-s390/elf.h +++ b/include/asm-s390/elf.h | |||
| @@ -93,19 +93,6 @@ | |||
| 93 | #define R_390_NUM 61 | 93 | #define R_390_NUM 61 |
| 94 | 94 | ||
| 95 | /* | 95 | /* |
| 96 | * ELF register definitions.. | ||
| 97 | */ | ||
| 98 | |||
| 99 | #include <linux/sched.h> /* for task_struct */ | ||
| 100 | #include <asm/ptrace.h> | ||
| 101 | #include <asm/user.h> | ||
| 102 | #include <asm/system.h> /* for save_access_regs */ | ||
| 103 | |||
| 104 | |||
| 105 | typedef s390_fp_regs elf_fpregset_t; | ||
| 106 | typedef s390_regs elf_gregset_t; | ||
| 107 | |||
| 108 | /* | ||
| 109 | * These are used to set parameters in the core dumps. | 96 | * These are used to set parameters in the core dumps. |
| 110 | */ | 97 | */ |
| 111 | #ifndef __s390x__ | 98 | #ifndef __s390x__ |
| @@ -117,6 +104,20 @@ typedef s390_regs elf_gregset_t; | |||
| 117 | #define ELF_ARCH EM_S390 | 104 | #define ELF_ARCH EM_S390 |
| 118 | 105 | ||
| 119 | /* | 106 | /* |
| 107 | * ELF register definitions.. | ||
| 108 | */ | ||
| 109 | |||
| 110 | #include <asm/ptrace.h> | ||
| 111 | #include <asm/user.h> | ||
| 112 | |||
| 113 | typedef s390_fp_regs elf_fpregset_t; | ||
| 114 | typedef s390_regs elf_gregset_t; | ||
| 115 | |||
| 116 | #ifdef __KERNEL__ | ||
| 117 | #include <linux/sched.h> /* for task_struct */ | ||
| 118 | #include <asm/system.h> /* for save_access_regs */ | ||
| 119 | |||
| 120 | /* | ||
| 120 | * This is used to ensure we don't load something for the wrong architecture. | 121 | * This is used to ensure we don't load something for the wrong architecture. |
| 121 | */ | 122 | */ |
| 122 | #define elf_check_arch(x) \ | 123 | #define elf_check_arch(x) \ |
| @@ -198,7 +199,6 @@ static inline int dump_task_fpu(struct task_struct *tsk, elf_fpregset_t *fpregs) | |||
| 198 | 199 | ||
| 199 | #define ELF_PLATFORM (NULL) | 200 | #define ELF_PLATFORM (NULL) |
| 200 | 201 | ||
| 201 | #ifdef __KERNEL__ | ||
| 202 | #ifndef __s390x__ | 202 | #ifndef __s390x__ |
| 203 | #define SET_PERSONALITY(ex, ibcs2) set_personality((ibcs2)?PER_SVR4:PER_LINUX) | 203 | #define SET_PERSONALITY(ex, ibcs2) set_personality((ibcs2)?PER_SVR4:PER_LINUX) |
| 204 | #else /* __s390x__ */ | 204 | #else /* __s390x__ */ |
