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