bug.h 532 B

123456789101112131415161718192021222324
  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. unreachable(); \
  14. } while (0)
  15. #define HAVE_ARCH_BUG
  16. #endif
  17. #include <asm-generic/bug.h>
  18. #endif