diff options
Diffstat (limited to 'arch/sh/include')
-rw-r--r-- | arch/sh/include/asm/elf.h | 9 | ||||
-rw-r--r-- | arch/sh/include/asm/ptrace.h | 8 |
2 files changed, 16 insertions, 1 deletions
diff --git a/arch/sh/include/asm/elf.h b/arch/sh/include/asm/elf.h index f01449a8d378..455d9e1e1438 100644 --- a/arch/sh/include/asm/elf.h +++ b/arch/sh/include/asm/elf.h | |||
@@ -108,6 +108,15 @@ typedef struct user_fpu_struct elf_fpregset_t; | |||
108 | #define elf_check_fdpic(x) ((x)->e_flags & EF_SH_FDPIC) | 108 | #define elf_check_fdpic(x) ((x)->e_flags & EF_SH_FDPIC) |
109 | #define elf_check_const_displacement(x) ((x)->e_flags & EF_SH_PIC) | 109 | #define elf_check_const_displacement(x) ((x)->e_flags & EF_SH_PIC) |
110 | 110 | ||
111 | #if defined(CONFIG_SUPERH32) && \ | ||
112 | (!defined(CONFIG_SH_FPU) && !defined(CONFIG_SH_DSP)) | ||
113 | /* | ||
114 | * Enable dump using regset for general purpose registers, use this as | ||
115 | * the default once the FPU and DSP registers are moved over also. | ||
116 | */ | ||
117 | #define CORE_DUMP_USE_REGSET | ||
118 | #endif | ||
119 | |||
111 | #define USE_ELF_CORE_DUMP | 120 | #define USE_ELF_CORE_DUMP |
112 | #define ELF_FDPIC_CORE_EFLAGS EF_SH_FDPIC | 121 | #define ELF_FDPIC_CORE_EFLAGS EF_SH_FDPIC |
113 | #define ELF_EXEC_PAGESIZE PAGE_SIZE | 122 | #define ELF_EXEC_PAGESIZE PAGE_SIZE |
diff --git a/arch/sh/include/asm/ptrace.h b/arch/sh/include/asm/ptrace.h index b86aeabba61a..bf73646e2d2b 100644 --- a/arch/sh/include/asm/ptrace.h +++ b/arch/sh/include/asm/ptrace.h | |||
@@ -87,12 +87,18 @@ struct pt_dspregs { | |||
87 | unsigned long mod; | 87 | unsigned long mod; |
88 | }; | 88 | }; |
89 | 89 | ||
90 | #define PTRACE_GETREGS 12 /* General registers */ | ||
91 | #define PTRACE_SETREGS 13 | ||
92 | |||
93 | #define PTRACE_GETFPREGS 14 /* FPU registers */ | ||
94 | #define PTRACE_SETFPREGS 15 | ||
95 | |||
90 | #define PTRACE_GETFDPIC 31 /* get the ELF fdpic loadmap address */ | 96 | #define PTRACE_GETFDPIC 31 /* get the ELF fdpic loadmap address */ |
91 | 97 | ||
92 | #define PTRACE_GETFDPIC_EXEC 0 /* [addr] request the executable loadmap */ | 98 | #define PTRACE_GETFDPIC_EXEC 0 /* [addr] request the executable loadmap */ |
93 | #define PTRACE_GETFDPIC_INTERP 1 /* [addr] request the interpreter loadmap */ | 99 | #define PTRACE_GETFDPIC_INTERP 1 /* [addr] request the interpreter loadmap */ |
94 | 100 | ||
95 | #define PTRACE_GETDSPREGS 55 | 101 | #define PTRACE_GETDSPREGS 55 /* DSP registers */ |
96 | #define PTRACE_SETDSPREGS 56 | 102 | #define PTRACE_SETDSPREGS 56 |
97 | #endif | 103 | #endif |
98 | 104 | ||