Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 1 | #ifndef __ASM_BUG_H |
| 2 | #define __ASM_BUG_H |
| 3 | |
| 4 | #include <asm/break.h> |
| 5 | |
Matt Mackall | c8538a7 | 2005-05-01 08:59:01 -0700 | [diff] [blame] | 6 | #ifdef CONFIG_BUG |
| 7 | #define HAVE_ARCH_BUG |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 8 | #define BUG() \ |
| 9 | do { \ |
| 10 | __asm__ __volatile__("break %0" : : "i" (BRK_BUG)); \ |
| 11 | } while (0) |
Matt Mackall | c8538a7 | 2005-05-01 08:59:01 -0700 | [diff] [blame] | 12 | #endif |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 13 | |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 14 | #include <asm-generic/bug.h> |
| 15 | |
| 16 | #endif |