1 /* SPDX-License-Identifier: GPL-2.0 */ 2 #ifndef _ASM_IA64_BUG_H 3 #define _ASM_IA64_BUG_H 4 5 #ifdef CONFIG_BUG 6 #define ia64_abort() __builtin_trap() 7 #define BUG() do { \ 8 printk("kernel BUG at %s:%d!\n", __FILE__, __LINE__); \ 9 barrier_before_unreachable(); \ 10 ia64_abort(); \ 11 } while (0) 12 13 /* should this BUG be made generic? */ 14 #define HAVE_ARCH_BUG 15 #endif 16 17 #include <asm-generic/bug.h> 18 19 #endif 20