Commit | Line | Data |
---|---|---|
1da177e4 LT |
1 | #ifndef _M68K_BUG_H |
2 | #define _M68K_BUG_H | |
3 | ||
4 | #include <linux/config.h> | |
5 | ||
c8538a7a | 6 | #ifdef CONFIG_BUG |
1da177e4 LT |
7 | #ifdef CONFIG_DEBUG_BUGVERBOSE |
8 | #ifndef CONFIG_SUN3 | |
9 | #define BUG() do { \ | |
10 | printk("kernel BUG at %s:%d!\n", __FILE__, __LINE__); \ | |
11 | asm volatile("illegal"); \ | |
12 | } while (0) | |
13 | #else | |
14 | #define BUG() do { \ | |
15 | printk("kernel BUG at %s:%d!\n", __FILE__, __LINE__); \ | |
16 | panic("BUG!"); \ | |
17 | } while (0) | |
18 | #endif | |
19 | #else | |
20 | #define BUG() do { \ | |
21 | asm volatile("illegal"); \ | |
22 | } while (0) | |
23 | #endif | |
24 | ||
25 | #define HAVE_ARCH_BUG | |
c8538a7a MM |
26 | #endif |
27 | ||
1da177e4 LT |
28 | #include <asm-generic/bug.h> |
29 | ||
30 | #endif |