bug.h 355 B

12345678910111213141516171819
  1. #ifndef _ASMARM_BUG_H
  2. #define _ASMARM_BUG_H
  3. #ifdef CONFIG_BUG
  4. #ifdef CONFIG_DEBUG_BUGVERBOSE
  5. extern volatile void __bug(const char *file, int line, void *data);
  6. /* give file/line information */
  7. #define BUG() __bug(__FILE__, __LINE__, NULL)
  8. #else
  9. #define BUG() (*(int *)0 = 0)
  10. #endif
  11. #define HAVE_ARCH_BUG
  12. #endif
  13. #include <asm-generic/bug.h>
  14. #endif