bug.h 571 B

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