提交 05920797 编写于 作者: D David Daney 提交者: Kyle McMartin

parisc: Convert BUG() to use unreachable()

Use the new unreachable() macro instead of for(;;);
Signed-off-by: NDavid Daney <ddaney@caviumnetworks.com>
Signed-off-by: NKyle McMartin <kyle@mcmartin.ca>
上级 6ad6c424
...@@ -32,14 +32,14 @@ ...@@ -32,14 +32,14 @@
"\t.popsection" \ "\t.popsection" \
: : "i" (__FILE__), "i" (__LINE__), \ : : "i" (__FILE__), "i" (__LINE__), \
"i" (0), "i" (sizeof(struct bug_entry)) ); \ "i" (0), "i" (sizeof(struct bug_entry)) ); \
for(;;) ; \ unreachable(); \
} while(0) } while(0)
#else #else
#define BUG() \ #define BUG() \
do { \ do { \
asm volatile(PARISC_BUG_BREAK_ASM : : ); \ asm volatile(PARISC_BUG_BREAK_ASM : : ); \
for(;;) ; \ unreachable(); \
} while(0) } while(0)
#endif #endif
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册
反馈
建议
客服 返回
顶部