]> git.proxmox.com Git - mirror_ubuntu-focal-kernel.git/blame - arch/arm64/include/asm/bug.h
treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 234
[mirror_ubuntu-focal-kernel.git] / arch / arm64 / include / asm / bug.h
CommitLineData
caab277b 1/* SPDX-License-Identifier: GPL-2.0-only */
9fb7410f
DM
2/*
3 * Copyright (C) 2015 ARM Limited
4 * Author: Dave Martin <Dave.Martin@arm.com>
9fb7410f
DM
5 */
6
7#ifndef _ARCH_ARM64_ASM_BUG_H
8#define _ARCH_ARM64_ASM_BUG_H
9
db44e9c5 10#include <linux/stringify.h>
9fb7410f 11
db44e9c5 12#include <asm/asm-bug.h>
f13d52cb
AB
13
14#define __BUG_FLAGS(flags) \
db44e9c5 15 asm volatile (__stringify(ASM_BUG_FLAGS(flags)));
f13d52cb
AB
16
17#define BUG() do { \
18 __BUG_FLAGS(0); \
19 unreachable(); \
9fb7410f
DM
20} while (0)
21
ab182e67 22#define __WARN_FLAGS(flags) __BUG_FLAGS(BUGFLAG_WARNING|(flags))
9fb7410f 23
f13d52cb 24#define HAVE_ARCH_BUG
9fb7410f
DM
25
26#include <asm-generic/bug.h>
27
28#endif /* ! _ARCH_ARM64_ASM_BUG_H */