iwl3945: Getting rid of the *39_rxon iwl_priv fields
[linux/fpc-iii.git] / arch / mips / include / asm / bug.h
blob08ea46863fe5ca8ce6683fe71f527a6c4346b690
1 #ifndef __ASM_BUG_H
2 #define __ASM_BUG_H
4 #include <asm/sgidefs.h>
6 #ifdef CONFIG_BUG
8 #include <asm/break.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. */
14 while (1)
18 #define HAVE_ARCH_BUG
20 #if (_MIPS_ISA > _MIPS_ISA_MIPS1)
22 static inline void __BUG_ON(unsigned long condition)
24 if (__builtin_constant_p(condition)) {
25 if (condition)
26 BUG();
27 else
28 return;
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 */
40 #endif
42 #include <asm-generic/bug.h>
44 #endif /* __ASM_BUG_H */