Commit 05920797 authored by David Daney's avatar David Daney Committed by Kyle McMartin

parisc: Convert BUG() to use unreachable()

Use the new unreachable() macro instead of for(;;);
Signed-off-by: default avatarDavid Daney <ddaney@caviumnetworks.com>
Signed-off-by: default avatarKyle McMartin <kyle@mcmartin.ca>
parent 6ad6c424
......@@ -32,14 +32,14 @@
"\t.popsection" \
: : "i" (__FILE__), "i" (__LINE__), \
"i" (0), "i" (sizeof(struct bug_entry)) ); \
for(;;) ; \
unreachable(); \
} while(0)
#else
#define BUG() \
do { \
asm volatile(PARISC_BUG_BREAK_ASM : : ); \
for(;;) ; \
unreachable(); \
} while(0)
#endif
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment