mirror of
https://github.com/adulau/aha.git
synced 2024-12-27 19:26:25 +00:00
parisc: Convert BUG() to use unreachable()
Use the new unreachable() macro instead of for(;;); Signed-off-by: David Daney <ddaney@caviumnetworks.com> Signed-off-by: Kyle McMartin <kyle@mcmartin.ca>
This commit is contained in:
parent
6ad6c4245e
commit
05920797ca
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue