diff options
author | Mike Frysinger <vapier@gentoo.org> | 2010-02-14 22:58:02 +0000 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2010-03-09 00:30:51 -0500 |
commit | e50e2f25c5b90abd00a1e5871c45094cf5207afc (patch) | |
tree | 22c550f642bbc390c4713fa7d0dd8e1bab2ea4a0 /arch/blackfin/include | |
parent | f2ce48024a9a6d3e92a023ded0f7b1e99da1cd16 (diff) | |
download | kernel_samsung_aries-e50e2f25c5b90abd00a1e5871c45094cf5207afc.zip kernel_samsung_aries-e50e2f25c5b90abd00a1e5871c45094cf5207afc.tar.gz kernel_samsung_aries-e50e2f25c5b90abd00a1e5871c45094cf5207afc.tar.bz2 |
Blackfin: initial regset support
We don't support core dumps (yet?), but this should make things easier.
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Diffstat (limited to 'arch/blackfin/include')
-rw-r--r-- | arch/blackfin/include/asm/elf.h | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/arch/blackfin/include/asm/elf.h b/arch/blackfin/include/asm/elf.h index 5b50f0e..117713a 100644 --- a/arch/blackfin/include/asm/elf.h +++ b/arch/blackfin/include/asm/elf.h @@ -22,12 +22,15 @@ #define EF_BFIN_CODE_IN_L2 0x00000040 /* --code-in-l2 */ #define EF_BFIN_DATA_IN_L2 0x00000080 /* --data-in-l2 */ +#if 1 /* core dumps not supported, but linux/elfcore.h needs these */ typedef unsigned long elf_greg_t; -#define ELF_NGREG 40 /* (sizeof(struct user_regs_struct) / sizeof(elf_greg_t)) */ +#define ELF_NGREG (sizeof(struct pt_regs) / sizeof(elf_greg_t)) typedef elf_greg_t elf_gregset_t[ELF_NGREG]; typedef struct { } elf_fpregset_t; +#endif + /* * This is used to ensure we don't load something for the wrong architecture. */ @@ -55,6 +58,9 @@ do { \ _regs->p2 = _dynamic_addr; \ } while(0) +#if 0 +#define CORE_DUMP_USE_REGSET +#endif #define ELF_FDPIC_CORE_EFLAGS EF_BFIN_FDPIC #define ELF_EXEC_PAGESIZE 4096 |