Skip to contentSkip to conversation

m68knommu: start dump from exception stack

PATCH RESEND New Greg Ungerer 1 participant 1 message Jul 18, 2007

lore
Share & tools
lore
#0 lore raw

PATCH RESEND 1/1 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.

---

arch/m68knommu/kernel/traps.c +1 -1
diff -Naur linux-2.6.22/arch/m68knommu/kernel/traps.c linux-2.6.22-uc0/arch/m68knommu/kernel/traps.c
@@ -82,7 +80,7 @@
 
 	printk(KERN_EMERG "Process %s (pid: %d, stackpage=%08lx)\n",
 		current->comm, current->pid, PAGE_SIZE+(unsigned long)current);
-	show_stack(NULL, (unsigned long *)fp);
+	show_stack(NULL, (unsigned long *)(fp+1));
 	do_exit(SIGSEGV);
 }