4 #include <asm/sgidefs.h>
10 static inline void __noreturn BUG(void)
12 __asm__ __volatile__("break %0" : : "i" (BRK_BUG));
13 /* Fool GCC into thinking the function doesn't return. */
20 #if (_MIPS_ISA > _MIPS_ISA_MIPS1)
22 static inline void __BUG_ON(unsigned long condition)
24 if (__builtin_constant_p(condition)) {
30 __asm__ __volatile__("tne $0, %0, %1"
31 : : "r" (condition), "i" (BRK_BUG));
34 #define BUG_ON(C) __BUG_ON((unsigned long)(C))
36 #define HAVE_ARCH_BUG_ON
38 #endif /* _MIPS_ISA > _MIPS_ISA_MIPS1 */
42 #include <asm-generic/bug.h>
44 #endif /* __ASM_BUG_H */