1 #include <linux/elfcore.h>
2 #include <linux/sched.h>
5 * Capture the user space registers if the task is not running (in user space)
7 int dump_task_regs(struct task_struct *tsk, elf_gregset_t *regs)
11 ptregs = *task_pt_regs(tsk);
12 elf_core_copy_regs(regs, &ptregs);
17 int dump_task_fpu(struct task_struct *tsk, elf_fpregset_t *fpu)
21 #if defined(CONFIG_SH_FPU)
22 fpvalid = !!tsk_used_math(tsk);
24 unlazy_fpu(tsk, task_pt_regs(tsk));
25 memcpy(fpu, &tsk->thread.fpu.hard, sizeof(*fpu));