diff options
author | Ralf Baechle <ralf@linux-mips.org> | 2005-03-14 11:16:59 +0100 |
---|---|---|
committer | Ralf Baechle <ralf@linux-mips.org> | 2005-10-29 20:30:56 +0200 |
commit | 71e0e556db08cc20de76d510be5600f6e5ce143c (patch) | |
tree | da5afa71e99ad20dd08b10a9ed25624c3d64929f /arch/mips | |
parent | When CONFIG_PM is enabled, it uses the TOY_MATCH2 interrupt as the system (diff) | |
download | linux-71e0e556db08cc20de76d510be5600f6e5ce143c.tar.xz linux-71e0e556db08cc20de76d510be5600f6e5ce143c.zip |
Multithreaded core dumps.
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Diffstat (limited to 'arch/mips')
-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) #endif } +int dump_task_regs (struct task_struct *tsk, elf_gregset_t *regs) +{ + struct thread_info *ti = tsk->thread_info; + long ksp = (unsigned long)ti + THREAD_SIZE - 32; + dump_regs(&(*regs)[0], (struct pt_regs *) ksp - 1); + return 1; +} + int dump_task_fpu (struct task_struct *t, elf_fpregset_t *fpr) { memcpy(fpr, &t->thread.fpu, sizeof(current->thread.fpu)); |