summaryrefslogtreecommitdiff
path: root/arch/sh/include/asm/elf.h
diff options
context:
space:
mode:
authorPaul Mundt <lethal@linux-sh.org>2008-09-12 19:52:36 +0900
committerPaul Mundt <lethal@linux-sh.org>2008-09-12 19:52:36 +0900
commit934135c19d8a1be435bae75aefc09b8ae1698b16 (patch)
tree825be606c643ed792a2973263cade41d05171cde /arch/sh/include/asm/elf.h
parent09558748464a9afafe2848a3ad4cfd509c9b0fb6 (diff)
sh: ptrace: Introduce user_regset interface for gp regs.
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
Diffstat (limited to 'arch/sh/include/asm/elf.h')
-rw-r--r--arch/sh/include/asm/elf.h9
1 files changed, 9 insertions, 0 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;
#define elf_check_fdpic(x) ((x)->e_flags & EF_SH_FDPIC)
#define elf_check_const_displacement(x) ((x)->e_flags & EF_SH_PIC)
+#if defined(CONFIG_SUPERH32) && \
+ (!defined(CONFIG_SH_FPU) && !defined(CONFIG_SH_DSP))
+/*
+ * Enable dump using regset for general purpose registers, use this as
+ * the default once the FPU and DSP registers are moved over also.
+ */
+#define CORE_DUMP_USE_REGSET
+#endif
+
#define USE_ELF_CORE_DUMP
#define ELF_FDPIC_CORE_EFLAGS EF_SH_FDPIC
#define ELF_EXEC_PAGESIZE PAGE_SIZE