bug.h 450 B

12345678910111213141516171819202122232425
  1. #ifndef _SPARC_BUG_H
  2. #define _SPARC_BUG_H
  3. #ifdef CONFIG_BUG
  4. #include <linux/compiler.h>
  5. #ifdef CONFIG_DEBUG_BUGVERBOSE
  6. void do_BUG(const char *file, int line);
  7. #define BUG() do { \
  8. do_BUG(__FILE__, __LINE__); \
  9. __builtin_trap(); \
  10. } while (0)
  11. #else
  12. #define BUG() __builtin_trap()
  13. #endif
  14. #define HAVE_ARCH_BUG
  15. #endif
  16. #include <asm-generic/bug.h>
  17. struct pt_regs;
  18. void __noreturn die_if_kernel(char *str, struct pt_regs *regs);
  19. #endif