bug.h 415 B

123456789101112131415
  1. #ifndef _ASM_IA64_BUG_H
  2. #define _ASM_IA64_BUG_H
  3. #if (__GNUC__ > 3) || (__GNUC__ == 3 && __GNUC_MINOR__ >= 1)
  4. # define ia64_abort() __builtin_trap()
  5. #else
  6. # define ia64_abort() (*(volatile int *) 0 = 0)
  7. #endif
  8. #define BUG() do { printk("kernel BUG at %s:%d!\n", __FILE__, __LINE__); ia64_abort(); } while (0)
  9. /* should this BUG should be made generic? */
  10. #define HAVE_ARCH_BUG
  11. #include <asm-generic/bug.h>
  12. #endif