bug.h 519 B

123456789101112131415161718192021222324252627282930
  1. #ifndef _M68K_BUG_H
  2. #define _M68K_BUG_H
  3. #ifdef CONFIG_MMU
  4. #ifdef CONFIG_BUG
  5. #ifdef CONFIG_DEBUG_BUGVERBOSE
  6. #ifndef CONFIG_SUN3
  7. #define BUG() do { \
  8. printk("kernel BUG at %s:%d!\n", __FILE__, __LINE__); \
  9. __builtin_trap(); \
  10. } while (0)
  11. #else
  12. #define BUG() do { \
  13. printk("kernel BUG at %s:%d!\n", __FILE__, __LINE__); \
  14. panic("BUG!"); \
  15. } while (0)
  16. #endif
  17. #else
  18. #define BUG() do { \
  19. __builtin_trap(); \
  20. } while (0)
  21. #endif
  22. #define HAVE_ARCH_BUG
  23. #endif
  24. #endif /* CONFIG_MMU */
  25. #include <asm-generic/bug.h>
  26. #endif