diff options
| -rw-r--r-- | arch/arm64/include/asm/elf.h | 5 | ||||
| -rw-r--r-- | arch/arm64/include/asm/fpsimd.h | 5 | ||||
| -rw-r--r-- | arch/arm64/kernel/process.c | 18 |
3 files changed, 3 insertions, 25 deletions
diff --git a/arch/arm64/include/asm/elf.h b/arch/arm64/include/asm/elf.h index cf284649dfcb..07fea290d7c1 100644 --- a/arch/arm64/include/asm/elf.h +++ b/arch/arm64/include/asm/elf.h | |||
| @@ -25,12 +25,10 @@ | |||
| 25 | #include <asm/user.h> | 25 | #include <asm/user.h> |
| 26 | 26 | ||
| 27 | typedef unsigned long elf_greg_t; | 27 | typedef unsigned long elf_greg_t; |
| 28 | typedef unsigned long elf_freg_t[3]; | ||
| 29 | 28 | ||
| 30 | #define ELF_NGREG (sizeof (struct pt_regs) / sizeof(elf_greg_t)) | 29 | #define ELF_NGREG (sizeof (struct pt_regs) / sizeof(elf_greg_t)) |
| 31 | typedef elf_greg_t elf_gregset_t[ELF_NGREG]; | 30 | typedef elf_greg_t elf_gregset_t[ELF_NGREG]; |
| 32 | 31 | typedef struct user_fpsimd_state elf_fpregset_t; | |
| 33 | typedef struct user_fp elf_fpregset_t; | ||
| 34 | 32 | ||
| 35 | #define EM_AARCH64 183 | 33 | #define EM_AARCH64 183 |
| 36 | 34 | ||
| @@ -87,7 +85,6 @@ typedef struct user_fp elf_fpregset_t; | |||
| 87 | #define R_AARCH64_MOVW_PREL_G2_NC 292 | 85 | #define R_AARCH64_MOVW_PREL_G2_NC 292 |
| 88 | #define R_AARCH64_MOVW_PREL_G3 293 | 86 | #define R_AARCH64_MOVW_PREL_G3 293 |
| 89 | 87 | ||
| 90 | |||
| 91 | /* | 88 | /* |
| 92 | * These are used to set parameters in the core dumps. | 89 | * These are used to set parameters in the core dumps. |
| 93 | */ | 90 | */ |
diff --git a/arch/arm64/include/asm/fpsimd.h b/arch/arm64/include/asm/fpsimd.h index b42fab9f62a9..c43b4ac13008 100644 --- a/arch/arm64/include/asm/fpsimd.h +++ b/arch/arm64/include/asm/fpsimd.h | |||
| @@ -25,9 +25,8 @@ | |||
| 25 | * - FPSR and FPCR | 25 | * - FPSR and FPCR |
| 26 | * - 32 128-bit data registers | 26 | * - 32 128-bit data registers |
| 27 | * | 27 | * |
| 28 | * Note that user_fp forms a prefix of this structure, which is relied | 28 | * Note that user_fpsimd forms a prefix of this structure, which is |
| 29 | * upon in the ptrace FP/SIMD accessors. struct user_fpsimd_state must | 29 | * relied upon in the ptrace FP/SIMD accessors. |
| 30 | * form a prefix of struct fpsimd_state. | ||
| 31 | */ | 30 | */ |
| 32 | struct fpsimd_state { | 31 | struct fpsimd_state { |
| 33 | union { | 32 | union { |
diff --git a/arch/arm64/kernel/process.c b/arch/arm64/kernel/process.c index f22965ea1cfc..e04cebdbb47f 100644 --- a/arch/arm64/kernel/process.c +++ b/arch/arm64/kernel/process.c | |||
| @@ -310,24 +310,6 @@ struct task_struct *__switch_to(struct task_struct *prev, | |||
| 310 | } | 310 | } |
| 311 | 311 | ||
| 312 | /* | 312 | /* |
| 313 | * Fill in the task's elfregs structure for a core dump. | ||
| 314 | */ | ||
| 315 | int dump_task_regs(struct task_struct *t, elf_gregset_t *elfregs) | ||
| 316 | { | ||
| 317 | elf_core_copy_regs(elfregs, task_pt_regs(t)); | ||
| 318 | return 1; | ||
| 319 | } | ||
| 320 | |||
| 321 | /* | ||
| 322 | * fill in the fpe structure for a core dump... | ||
| 323 | */ | ||
| 324 | int dump_fpu (struct pt_regs *regs, struct user_fp *fp) | ||
| 325 | { | ||
| 326 | return 0; | ||
| 327 | } | ||
| 328 | EXPORT_SYMBOL(dump_fpu); | ||
| 329 | |||
| 330 | /* | ||
| 331 | * Shuffle the argument into the correct register before calling the | 313 | * Shuffle the argument into the correct register before calling the |
| 332 | * thread function. x1 is the thread argument, x2 is the pointer to | 314 | * thread function. x1 is the thread argument, x2 is the pointer to |
| 333 | * the thread function, and x3 points to the exit function. | 315 | * the thread function, and x3 points to the exit function. |
