xref: /openbmc/linux/arch/loongarch/include/asm/bug.h (revision 7ae5c03a)
1 /* SPDX-License-Identifier: GPL-2.0 */
2 #ifndef __ASM_BUG_H
3 #define __ASM_BUG_H
4 
5 #include <linux/compiler.h>
6 
7 #ifdef CONFIG_BUG
8 
9 #include <asm/break.h>
10 
11 static inline void __noreturn BUG(void)
12 {
13 	__asm__ __volatile__("break %0" : : "i" (BRK_BUG));
14 	unreachable();
15 }
16 
17 #define HAVE_ARCH_BUG
18 
19 #endif
20 
21 #include <asm-generic/bug.h>
22 
23 #endif /* __ASM_BUG_H */
24