Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 1 | #ifndef _ASMARM_BUG_H |
| 2 | #define _ASMARM_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 | extern volatile void __bug(const char *file, int line, void *data); |
| 9 | /* give file/line information */ |
| 10 | #define BUG() __bug(__FILE__, __LINE__, NULL) |
| 11 | #else |
| 12 | #define BUG() (*(int *)0 = 0) |
| 13 | #endif |
| 14 | |
| 15 | #define HAVE_ARCH_BUG |
Matt Mackall | c8538a7 | 2005-05-01 08:59:01 -0700 | [diff] [blame] | 16 | #endif |
| 17 | |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 18 | #include <asm-generic/bug.h> |
| 19 | |
| 20 | #endif |