From: Roman Zippel Date: Fri, 23 Jun 2006 09:04:56 +0000 (-0700) Subject: [PATCH] m68k: print correct stack trace X-Git-Tag: v2.6.18-rc1~1081^2~92 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=cb7d390df391402c9630940d5a2ea1571fc5cde2;p=platform%2Fkernel%2Flinux-3.10.git [PATCH] m68k: print correct stack trace Pass unmodified stack argument to show_trace(). Signed-off-by: Roman Zippel Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/arch/m68k/kernel/traps.c b/arch/m68k/kernel/traps.c index cdf58fb..86aa63f 100644 --- a/arch/m68k/kernel/traps.c +++ b/arch/m68k/kernel/traps.c @@ -992,6 +992,7 @@ void show_registers(struct pt_regs *regs) void show_stack(struct task_struct *task, unsigned long *stack) { + unsigned long *p; unsigned long *endstack; int i; @@ -1004,12 +1005,13 @@ void show_stack(struct task_struct *task, unsigned long *stack) endstack = (unsigned long *)(((unsigned long)stack + THREAD_SIZE - 1) & -THREAD_SIZE); printk("Stack from %08lx:", (unsigned long)stack); + p = stack; for (i = 0; i < kstack_depth_to_print; i++) { - if (stack + 1 > endstack) + if (p + 1 > endstack) break; if (i % 8 == 0) printk("\n "); - printk(" %08lx", *stack++); + printk(" %08lx", *p++); } printk("\n"); show_trace(stack);