bug.h 527 B

1234567891011121314151617181920212223242526272829303132
  1. #ifndef __ASM_BUG_H
  2. #define __ASM_BUG_H
  3. #include <asm/sgidefs.h>
  4. #ifdef CONFIG_BUG
  5. #include <asm/break.h>
  6. #define BUG() \
  7. do { \
  8. __asm__ __volatile__("break %0" : : "i" (BRK_BUG)); \
  9. } while (0)
  10. #define HAVE_ARCH_BUG
  11. #if (_MIPS_ISA > _MIPS_ISA_MIPS1)
  12. #define BUG_ON(condition) \
  13. do { \
  14. __asm__ __volatile__("tne $0, %0" : : "r" (condition)); \
  15. } while (0)
  16. #define HAVE_ARCH_BUG_ON
  17. #endif /* _MIPS_ISA > _MIPS_ISA_MIPS1 */
  18. #endif
  19. #include <asm-generic/bug.h>
  20. #endif /* __ASM_BUG_H */