Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 1 | #ifndef _M68K_BUG_H |
| 2 | #define _M68K_BUG_H |
| 3 | |
| 4 | #include <linux/config.h> |
| 5 | |
Matt Mackall | c8538a7 | 2005-05-01 08:59:01 -0700 | [diff] [blame] | 6 | #ifdef CONFIG_BUG |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 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 |
Matt Mackall | c8538a7 | 2005-05-01 08:59:01 -0700 | [diff] [blame] | 26 | #endif |
| 27 | |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 28 | #include <asm-generic/bug.h> |
| 29 | |
| 30 | #endif |