1 /* SPDX-License-Identifier: GPL-2.0-only */
3 * Copyright (C) 2015 ARM Limited
4 * Author: Dave Martin <Dave.Martin@arm.com>
7 #ifndef _ARCH_ARM64_ASM_BUG_H
8 #define _ARCH_ARM64_ASM_BUG_H
10 #include <linux/stringify.h>
12 #include <asm/asm-bug.h>
14 #define __BUG_FLAGS(flags) \
15 asm volatile (__stringify(ASM_BUG_FLAGS(flags)));
22 #define __WARN_FLAGS(flags) __BUG_FLAGS(BUGFLAG_WARNING|(flags))
26 #include <asm-generic/bug.h>
28 #endif /* ! _ARCH_ARM64_ASM_BUG_H */