summaryrefslogtreecommitdiff
path: root/arch/sh/kernel/dump_task.c
diff options
context:
space:
mode:
authorPaul Mundt <lethal@linux-sh.org>2008-09-12 23:27:46 +0900
committerPaul Mundt <lethal@linux-sh.org>2008-09-12 23:27:46 +0900
commit0e660d2d433393f983cd58fe8c54f831fa7c7713 (patch)
treed29fd22e42d6f29aa3501a19b4f5c698a31843a9 /arch/sh/kernel/dump_task.c
parent72461997c3c66c29775afa68ca31bea16bf17f39 (diff)
sh: Tidy up ELF core dumps.
These have been using overrides for ELF_CORE_COPY_TASK_REGS and ELF_CORE_COPY_FPREGS while the generic versions can be used instead. Presently the pt_regs are also duplicated across elf_core_copy_regs() and elf_core_copy_task_regs(), this switches to simply copying out through elf_core_copy_regs() instead. Signed-off-by: Paul Mundt <lethal@linux-sh.org>
Diffstat (limited to 'arch/sh/kernel/dump_task.c')
-rw-r--r--arch/sh/kernel/dump_task.c32
1 files changed, 0 insertions, 32 deletions
diff --git a/arch/sh/kernel/dump_task.c b/arch/sh/kernel/dump_task.c
deleted file mode 100644
index 1db7ce0f25d4..000000000000
--- a/arch/sh/kernel/dump_task.c
+++ /dev/null
@@ -1,32 +0,0 @@
-#include <linux/elfcore.h>
-#include <linux/sched.h>
-#include <asm/fpu.h>
-
-/*
- * Capture the user space registers if the task is not running (in user space)
- */
-int dump_task_regs(struct task_struct *tsk, elf_gregset_t *regs)
-{
- struct pt_regs ptregs;
-
- ptregs = *task_pt_regs(tsk);
- elf_core_copy_regs(regs, &ptregs);
-
- return 1;
-}
-
-int dump_task_fpu(struct task_struct *tsk, elf_fpregset_t *fpu)
-{
- int fpvalid = 0;
-
-#if defined(CONFIG_SH_FPU)
- fpvalid = !!tsk_used_math(tsk);
- if (fpvalid) {
- unlazy_fpu(tsk, task_pt_regs(tsk));
- memcpy(fpu, &tsk->thread.fpu.hard, sizeof(*fpu));
- }
-#endif
-
- return fpvalid;
-}
-