Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 1 | #ifndef __ASM_BUG_H |
| 2 | #define __ASM_BUG_H |
| 3 | |
Ralf Baechle | fdb551a | 2005-05-19 12:08:04 +0000 | [diff] [blame] | 4 | |
| 5 | #ifdef CONFIG_BUG |
| 6 | |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 7 | #include <asm/break.h> |
| 8 | |
| 9 | #define BUG() \ |
| 10 | do { \ |
| 11 | __asm__ __volatile__("break %0" : : "i" (BRK_BUG)); \ |
| 12 | } while (0) |
Ralf Baechle | 8592d4c | 2005-10-29 19:32:38 +0100 | [diff] [blame] | 13 | |
| 14 | #define HAVE_ARCH_BUG |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 15 | |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 16 | #endif |
Ralf Baechle | fdb551a | 2005-05-19 12:08:04 +0000 | [diff] [blame] | 17 | |
Ralf Baechle | ffd099b | 2005-05-19 17:05:09 +0000 | [diff] [blame] | 18 | #include <asm-generic/bug.h> |
| 19 | |
Ralf Baechle | fdb551a | 2005-05-19 12:08:04 +0000 | [diff] [blame] | 20 | #endif /* __ASM_BUG_H */ |