diff options
author | Greg Ungerer <gerg@snapgear.com> | 2007-07-19 04:49:14 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@woody.linux-foundation.org> | 2007-07-19 13:04:51 -0400 |
commit | a4c8b9159000018b0c641b844795a4de4e954582 (patch) | |
tree | 153e66deaf90b35c80fd1137c8b3e8755c87bf2d | |
parent | 2502b667ea835ee16685c74b2a0d89ba8afe117a (diff) |
m68knommu: start dump from exception stack
In die_if_kernel() start the stack dump at the exception-time SP, not at the
SP with all the saved registers; the stack below exception-time sp contains
only exception-saved values and is already printed in details just before.
Signed-off-by: Philippe De Muyter <phdm@macqel.be>
Signed-off-by: Greg Ungerer <gerg@uclinux.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
-rw-r--r-- | arch/m68knommu/kernel/traps.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/m68knommu/kernel/traps.c b/arch/m68knommu/kernel/traps.c index 9c943a4accc0..437a061d8b94 100644 --- a/arch/m68knommu/kernel/traps.c +++ b/arch/m68knommu/kernel/traps.c | |||
@@ -80,7 +80,7 @@ void die_if_kernel(char *str, struct pt_regs *fp, int nr) | |||
80 | 80 | ||
81 | printk(KERN_EMERG "Process %s (pid: %d, stackpage=%08lx)\n", | 81 | printk(KERN_EMERG "Process %s (pid: %d, stackpage=%08lx)\n", |
82 | current->comm, current->pid, PAGE_SIZE+(unsigned long)current); | 82 | current->comm, current->pid, PAGE_SIZE+(unsigned long)current); |
83 | show_stack(NULL, (unsigned long *)fp); | 83 | show_stack(NULL, (unsigned long *)(fp + 1)); |
84 | add_taint(TAINT_DIE); | 84 | add_taint(TAINT_DIE); |
85 | do_exit(SIGSEGV); | 85 | do_exit(SIGSEGV); |
86 | } | 86 | } |