at v2.6.21-rc2 32 lines 527 B view raw
1#ifndef __ASM_BUG_H 2#define __ASM_BUG_H 3 4#include <asm/sgidefs.h> 5 6#ifdef CONFIG_BUG 7 8#include <asm/break.h> 9 10#define BUG() \ 11do { \ 12 __asm__ __volatile__("break %0" : : "i" (BRK_BUG)); \ 13} while (0) 14 15#define HAVE_ARCH_BUG 16 17#if (_MIPS_ISA > _MIPS_ISA_MIPS1) 18 19#define BUG_ON(condition) \ 20do { \ 21 __asm__ __volatile__("tne $0, %0" : : "r" (condition)); \ 22} while (0) 23 24#define HAVE_ARCH_BUG_ON 25 26#endif /* _MIPS_ISA > _MIPS_ISA_MIPS1 */ 27 28#endif 29 30#include <asm-generic/bug.h> 31 32#endif /* __ASM_BUG_H */