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
));
14 /* Fool GCC into thinking the function doesn't return. */
21 #if (_MIPS_ISA > _MIPS_ISA_MIPS1)
23 static inline void __BUG_ON(unsigned long condition
)
25 if (__builtin_constant_p(condition
)) {
31 __asm__
__volatile__("tne $0, %0, %1"
32 : : "r" (condition
), "i" (BRK_BUG
));
35 #define BUG_ON(C) __BUG_ON((unsigned long)(C))
37 #define HAVE_ARCH_BUG_ON
39 #endif /* _MIPS_ISA > _MIPS_ISA_MIPS1 */
43 #include <asm-generic/bug.h>
45 #endif /* __ASM_BUG_H */