bug.h 439 B

123456789101112131415161718
  1. #ifndef _ALPHA_BUG_H
  2. #define _ALPHA_BUG_H
  3. #ifdef CONFIG_BUG
  4. #include <asm/pal.h>
  5. /* ??? Would be nice to use .gprel32 here, but we can't be sure that the
  6. function loaded the GP, so this could fail in modules. */
  7. #define BUG() \
  8. __asm__ __volatile__("call_pal %0 # bugchk\n\t"".long %1\n\t.8byte %2" \
  9. : : "i" (PAL_bugchk), "i"(__LINE__), "i"(__FILE__))
  10. #define HAVE_ARCH_BUG
  11. #endif
  12. #include <asm-generic/bug.h>
  13. #endif