GNU Linux-libre 4.4.289-gnu1
[releases.git] / arch / m68k / include / asm / bug.h
1 #ifndef _M68K_BUG_H
2 #define _M68K_BUG_H
3
4 #ifdef CONFIG_MMU
5 #ifdef CONFIG_BUG
6 #ifdef CONFIG_DEBUG_BUGVERBOSE
7 #ifndef CONFIG_SUN3
8 #define BUG() do { \
9         printk("kernel BUG at %s:%d!\n", __FILE__, __LINE__); \
10         barrier_before_unreachable(); \
11         __builtin_trap(); \
12 } while (0)
13 #else
14 #define BUG() do { \
15         printk("kernel BUG at %s:%d!\n", __FILE__, __LINE__); \
16         barrier_before_unreachable(); \
17         panic("BUG!"); \
18 } while (0)
19 #endif
20 #else
21 #define BUG() do { \
22         barrier_before_unreachable(); \
23         __builtin_trap(); \
24 } while (0)
25 #endif
26
27 #define HAVE_ARCH_BUG
28 #endif
29 #endif /* CONFIG_MMU */
30
31 #include <asm-generic/bug.h>
32
33 #endif