bug.h 492 B

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