Skip to content

Commit

Permalink
sh: Kill off superfluous __KERNEL__ check in asm/elf.h.
Browse files Browse the repository at this point in the history
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
  • Loading branch information
Paul Mundt committed Jan 28, 2008
1 parent 98c4ecd commit 543d5af
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions include/asm-sh/elf.h
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,6 @@ typedef struct user_fpu_struct elf_fpregset_t;

#define ELF_ET_DYN_BASE (2 * TASK_SIZE / 3)


#define ELF_CORE_COPY_REGS(_dest,_regs) \
memcpy((char *) &_dest, (char *) _regs, \
sizeof(struct pt_regs));
Expand Down Expand Up @@ -139,15 +138,13 @@ typedef struct user_fpu_struct elf_fpregset_t;
_r->sr = SR_FD; } while (0)
#endif

#ifdef __KERNEL__
#define SET_PERSONALITY(ex, ibcs2) set_personality(PER_LINUX_32BIT)
struct task_struct;
extern int dump_task_regs (struct task_struct *, elf_gregset_t *);
extern int dump_task_fpu (struct task_struct *, elf_fpregset_t *);

#define ELF_CORE_COPY_TASK_REGS(tsk, elf_regs) dump_task_regs(tsk, elf_regs)
#define ELF_CORE_COPY_FPREGS(tsk, elf_fpregs) dump_task_fpu(tsk, elf_fpregs)
#endif

#ifdef CONFIG_VSYSCALL
/* vDSO has arch_setup_additional_pages */
Expand Down

0 comments on commit 543d5af

Please sign in to comment.