diff options
author | Al Viro <viro@ftp.linux.org.uk> | 2006-01-12 04:06:07 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2006-01-12 12:08:58 -0500 |
commit | 40bc9c671a9f0a5189c07a2b4280aec9b40e30cd (patch) | |
tree | b44709dbe0a5f825f6fc0a0e0bfeac1028d8c443 /arch/mips/kernel/process.c | |
parent | 6450578f32cdca587ae5f148e2118b2fcc36bb11 (diff) |
[PATCH] mips: task_pt_regs()
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'arch/mips/kernel/process.c')
-rw-r--r-- | arch/mips/kernel/process.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/arch/mips/kernel/process.c b/arch/mips/kernel/process.c index 0476a4dce14e..aca56f4a5d50 100644 --- a/arch/mips/kernel/process.c +++ b/arch/mips/kernel/process.c | |||
@@ -229,9 +229,7 @@ void elf_dump_regs(elf_greg_t *gp, struct pt_regs *regs) | |||
229 | 229 | ||
230 | int dump_task_regs (struct task_struct *tsk, elf_gregset_t *regs) | 230 | int dump_task_regs (struct task_struct *tsk, elf_gregset_t *regs) |
231 | { | 231 | { |
232 | struct thread_info *ti = tsk->thread_info; | 232 | elf_dump_regs(*regs, task_pt_regs(tsk)); |
233 | long ksp = (unsigned long)ti + THREAD_SIZE - 32; | ||
234 | elf_dump_regs(&(*regs)[0], (struct pt_regs *) ksp - 1); | ||
235 | return 1; | 233 | return 1; |
236 | } | 234 | } |
237 | 235 | ||