Commit | Line | Data |
---|---|---|
1da177e4 LT |
1 | #ifndef _ASMARM_BUG_H |
2 | #define _ASMARM_BUG_H | |
3 | ||
1da177e4 | 4 | |
c8538a7a | 5 | #ifdef CONFIG_BUG |
1da177e4 | 6 | #ifdef CONFIG_DEBUG_BUGVERBOSE |
7174d852 | 7 | extern void __bug(const char *file, int line) __attribute__((noreturn)); |
1da177e4 LT |
8 | |
9 | /* give file/line information */ | |
7174d852 | 10 | #define BUG() __bug(__FILE__, __LINE__) |
1da177e4 LT |
11 | |
12 | #else | |
13 | ||
14 | /* this just causes an oops */ | |
15 | #define BUG() (*(int *)0 = 0) | |
16 | ||
17 | #endif | |
18 | ||
19 | #define HAVE_ARCH_BUG | |
c8538a7a MM |
20 | #endif |
21 | ||
1da177e4 LT |
22 | #include <asm-generic/bug.h> |
23 | ||
24 | #endif |