bug.h 520 B

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