bug.h 558 B

123456789101112131415161718192021222324252627282930313233
  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, %1" \
  15. : : "r" (condition), "i" (BRK_BUG)); \
  16. } while (0)
  17. #define HAVE_ARCH_BUG_ON
  18. #endif /* _MIPS_ISA > _MIPS_ISA_MIPS1 */
  19. #endif
  20. #include <asm-generic/bug.h>
  21. #endif /* __ASM_BUG_H */