Commit | Line | Data |
---|---|---|
1da177e4 LT |
1 | #ifndef _ASMARM_BUG_H |
2 | #define _ASMARM_BUG_H | |
3 | ||
1da177e4 | 4 | |
c8538a7a | 5 | #ifdef CONFIG_BUG |
1da177e4 LT |
6 | #ifdef CONFIG_DEBUG_BUGVERBOSE |
7 | extern volatile void __bug(const char *file, int line, void *data); | |
8 | /* give file/line information */ | |
9 | #define BUG() __bug(__FILE__, __LINE__, NULL) | |
10 | #else | |
11 | #define BUG() (*(int *)0 = 0) | |
12 | #endif | |
13 | ||
14 | #define HAVE_ARCH_BUG | |
c8538a7a MM |
15 | #endif |
16 | ||
1da177e4 LT |
17 | #include <asm-generic/bug.h> |
18 | ||
19 | #endif |