提交 9be9be2e 编写于 作者: P Paul Mackerras 提交者: Benjamin Herrenschmidt

powerpc: Reduce scariness of interrupt frames in stack traces

Some people see things like "Exception: 501" in stack traces in dmesg
and assume that means that something has gone badly wrong, when in
fact "Exception: 501" just means a device interrupt was taken.
This changes "Exception" to "interrupt" to make it clearer that we
are just recording the fact of a change in control flow rather than
some error condition.
Signed-off-by: NPaul Mackerras <paulus@samba.org>
Signed-off-by: NBenjamin Herrenschmidt <benh@kernel.crashing.org>
上级 16a05bff
...@@ -1581,7 +1581,7 @@ void show_stack(struct task_struct *tsk, unsigned long *stack) ...@@ -1581,7 +1581,7 @@ void show_stack(struct task_struct *tsk, unsigned long *stack)
struct pt_regs *regs = (struct pt_regs *) struct pt_regs *regs = (struct pt_regs *)
(sp + STACK_FRAME_OVERHEAD); (sp + STACK_FRAME_OVERHEAD);
lr = regs->link; lr = regs->link;
printk("--- Exception: %lx at %pS\n LR = %pS\n", printk("--- interrupt: %lx at %pS\n LR = %pS\n",
regs->trap, (void *)regs->nip, (void *)lr); regs->trap, (void *)regs->nip, (void *)lr);
firstframe = 1; firstframe = 1;
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册