bug.h 354 B

12345678910111213141516171819
  1. #ifndef _SPARC64_BUG_H
  2. #define _SPARC64_BUG_H
  3. #include <linux/compiler.h>
  4. #ifdef CONFIG_DEBUG_BUGVERBOSE
  5. extern void do_BUG(const char *file, int line);
  6. #define BUG() do { \
  7. do_BUG(__FILE__, __LINE__); \
  8. __builtin_trap(); \
  9. } while (0)
  10. #else
  11. #define BUG() __builtin_trap()
  12. #endif
  13. #define HAVE_ARCH_BUG
  14. #include <asm-generic/bug.h>
  15. #endif