diff options
Diffstat (limited to 'arch/mips/kernel/process.c')
-rw-r--r-- | arch/mips/kernel/process.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/arch/mips/kernel/process.c b/arch/mips/kernel/process.c index 5223c4450e4c..2b7a44deb856 100644 --- a/arch/mips/kernel/process.c +++ b/arch/mips/kernel/process.c | |||
@@ -167,6 +167,14 @@ void dump_regs(elf_greg_t *gp, struct pt_regs *regs) | |||
167 | #endif | 167 | #endif |
168 | } | 168 | } |
169 | 169 | ||
170 | int dump_task_regs (struct task_struct *tsk, elf_gregset_t *regs) | ||
171 | { | ||
172 | struct thread_info *ti = tsk->thread_info; | ||
173 | long ksp = (unsigned long)ti + THREAD_SIZE - 32; | ||
174 | dump_regs(&(*regs)[0], (struct pt_regs *) ksp - 1); | ||
175 | return 1; | ||
176 | } | ||
177 | |||
170 | int dump_task_fpu (struct task_struct *t, elf_fpregset_t *fpr) | 178 | int dump_task_fpu (struct task_struct *t, elf_fpregset_t *fpr) |
171 | { | 179 | { |
172 | memcpy(fpr, &t->thread.fpu, sizeof(current->thread.fpu)); | 180 | memcpy(fpr, &t->thread.fpu, sizeof(current->thread.fpu)); |