| Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 1 | #ifndef _ASMARM_BUG_H | 
 | 2 | #define _ASMARM_BUG_H | 
 | 3 |  | 
| Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 4 |  | 
| Matt Mackall | c8538a7 | 2005-05-01 08:59:01 -0700 | [diff] [blame] | 5 | #ifdef CONFIG_BUG | 
| Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 6 | #ifdef CONFIG_DEBUG_BUGVERBOSE | 
| Nicolas Pitre | 7174d85 | 2006-12-07 19:09:20 +0100 | [diff] [blame] | 7 | extern void __bug(const char *file, int line) __attribute__((noreturn)); | 
| Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 8 |  | 
 | 9 | /* give file/line information */ | 
| Nicolas Pitre | 7174d85 | 2006-12-07 19:09:20 +0100 | [diff] [blame] | 10 | #define BUG()		__bug(__FILE__, __LINE__) | 
| Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 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 | 
| Matt Mackall | c8538a7 | 2005-05-01 08:59:01 -0700 | [diff] [blame] | 20 | #endif | 
 | 21 |  | 
| Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 22 | #include <asm-generic/bug.h> | 
 | 23 |  | 
 | 24 | #endif |