OMAP3 SRF: Add virt clk nodes for VDD1/VDD2
[linux-ginger.git] / arch / mips / include / asm / bug.h
blob6cf29c26e873788a78221ab517dc97cc6ae5386c
1 #ifndef __ASM_BUG_H
2 #define __ASM_BUG_H
4 #include <linux/compiler.h>
5 #include <asm/sgidefs.h>
7 #ifdef CONFIG_BUG
9 #include <asm/break.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. */
15 while (1)
19 #define HAVE_ARCH_BUG
21 #if (_MIPS_ISA > _MIPS_ISA_MIPS1)
23 static inline void __BUG_ON(unsigned long condition)
25 if (__builtin_constant_p(condition)) {
26 if (condition)
27 BUG();
28 else
29 return;
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 */
41 #endif
43 #include <asm-generic/bug.h>
45 #endif /* __ASM_BUG_H */