bug.h 402 B

12345678910111213141516171819
  1. #ifndef __ASM_SH64_BUG_H
  2. #define __ASM_SH64_BUG_H
  3. #ifdef CONFIG_BUG
  4. /*
  5. * Tell the user there is some problem, then force a segfault (in process
  6. * context) or a panic (interrupt context).
  7. */
  8. #define BUG() do { \
  9. printk("kernel BUG at %s:%d!\n", __FILE__, __LINE__); \
  10. *(volatile int *)0 = 0; \
  11. } while (0)
  12. #define HAVE_ARCH_BUG
  13. #endif
  14. #include <asm-generic/bug.h>
  15. #endif /* __ASM_SH64_BUG_H */