提交 0ec39885 编写于 作者: M Magnus Damm 提交者: Paul Mundt

sh: unbreak WARN_ON()

Fix WARN_ON() by modifying the bug trap handling code to
always return in the in-kernel instruction pointer case.
Signed-off-by: NMagnus Damm <damm@igel.co.jp>
Signed-off-by: NPaul Mundt <lethal@linux-sh.org>
上级 39f4490c
...@@ -69,6 +69,7 @@ BUILD_TRAP_HANDLER(bug) ...@@ -69,6 +69,7 @@ BUILD_TRAP_HANDLER(bug)
insn_size_t insn = *(insn_size_t *)instruction_pointer(regs); insn_size_t insn = *(insn_size_t *)instruction_pointer(regs);
if (insn == TRAPA_BUG_OPCODE) if (insn == TRAPA_BUG_OPCODE)
handle_BUG(regs); handle_BUG(regs);
return;
} }
#endif #endif
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册