4 #include <linux/compiler.h>
5 #include <asm/sgidefs.h>
11 static inline void __noreturn
BUG(void)
13 __asm__
__volatile__("break %0" : : "i" (BRK_BUG
));
19 #if (_MIPS_ISA > _MIPS_ISA_MIPS1)
21 static inline void __BUG_ON(unsigned long condition
)
23 if (__builtin_constant_p(condition
)) {
29 __asm__
__volatile__("tne $0, %0, %1"
30 : : "r" (condition
), "i" (BRK_BUG
));
33 #define BUG_ON(C) __BUG_ON((unsigned long)(C))
35 #define HAVE_ARCH_BUG_ON
37 #endif /* _MIPS_ISA > _MIPS_ISA_MIPS1 */
41 #include <asm-generic/bug.h>
43 #endif /* __ASM_BUG_H */