mirror of
https://github.com/edk2-porting/linux-next.git
synced 2024-12-22 12:14:01 +08:00
e8006b060f
Use `__builtin_trap()' instead of `asm volatile("illegal")' in the m68k BUG() macros (as suggested by Andrew Pinski), to kill warnings in code that assumes BUG() does not return. Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
30 lines
478 B
C
30 lines
478 B
C
#ifndef _M68K_BUG_H
|
|
#define _M68K_BUG_H
|
|
|
|
|
|
#ifdef CONFIG_BUG
|
|
#ifdef CONFIG_DEBUG_BUGVERBOSE
|
|
#ifndef CONFIG_SUN3
|
|
#define BUG() do { \
|
|
printk("kernel BUG at %s:%d!\n", __FILE__, __LINE__); \
|
|
__builtin_trap(); \
|
|
} while (0)
|
|
#else
|
|
#define BUG() do { \
|
|
printk("kernel BUG at %s:%d!\n", __FILE__, __LINE__); \
|
|
panic("BUG!"); \
|
|
} while (0)
|
|
#endif
|
|
#else
|
|
#define BUG() do { \
|
|
__builtin_trap(); \
|
|
} while (0)
|
|
#endif
|
|
|
|
#define HAVE_ARCH_BUG
|
|
#endif
|
|
|
|
#include <asm-generic/bug.h>
|
|
|
|
#endif
|