]>
Commit | Line | Data |
---|---|---|
1da177e4 LT |
1 | #ifndef __ASM_BUG_H |
2 | #define __ASM_BUG_H | |
3 | ||
63dc68a8 | 4 | #include <asm/sgidefs.h> |
fdb551a4 RB |
5 | |
6 | #ifdef CONFIG_BUG | |
7 | ||
1da177e4 LT |
8 | #include <asm/break.h> |
9 | ||
10 | #define BUG() \ | |
11 | do { \ | |
12 | __asm__ __volatile__("break %0" : : "i" (BRK_BUG)); \ | |
13 | } while (0) | |
8592d4c0 RB |
14 | |
15 | #define HAVE_ARCH_BUG | |
1da177e4 | 16 | |
63dc68a8 RB |
17 | #if (_MIPS_ISA > _MIPS_ISA_MIPS1) |
18 | ||
19 | #define BUG_ON(condition) \ | |
20 | do { \ | |
ba755f8e AN |
21 | __asm__ __volatile__("tne $0, %0, %1" \ |
22 | : : "r" (condition), "i" (BRK_BUG)); \ | |
63dc68a8 RB |
23 | } while (0) |
24 | ||
25 | #define HAVE_ARCH_BUG_ON | |
26 | ||
27 | #endif /* _MIPS_ISA > _MIPS_ISA_MIPS1 */ | |
28 | ||
1da177e4 | 29 | #endif |
fdb551a4 | 30 | |
ffd099bd RB |
31 | #include <asm-generic/bug.h> |
32 | ||
fdb551a4 | 33 | #endif /* __ASM_BUG_H */ |