0001
0002
0003
0004
0005
0006
0007 #ifndef _ARCH_ARM64_ASM_BUG_H
0008 #define _ARCH_ARM64_ASM_BUG_H
0009
0010 #include <linux/stringify.h>
0011
0012 #include <asm/asm-bug.h>
0013
0014 #define __BUG_FLAGS(flags) \
0015 asm volatile (__stringify(ASM_BUG_FLAGS(flags)));
0016
0017 #define BUG() do { \
0018 __BUG_FLAGS(0); \
0019 unreachable(); \
0020 } while (0)
0021
0022 #define __WARN_FLAGS(flags) __BUG_FLAGS(BUGFLAG_WARNING|(flags))
0023
0024 #define HAVE_ARCH_BUG
0025
0026 #include <asm-generic/bug.h>
0027
0028 #endif