Merge tag 'locking-urgent-2020-12-27' of git://git.kernel.org/pub/scm/linux/kernel...
[linux/fpc-iii.git] / arch / csky / include / asm / bug.h
blob33ebd16b9c7874863d0b59e9361e59116040c5a4
1 /* SPDX-License-Identifier: GPL-2.0 */
2 // Copyright (C) 2018 Hangzhou C-SKY Microsystems co.,ltd.
4 #ifndef __ASM_CSKY_BUG_H
5 #define __ASM_CSKY_BUG_H
7 #include <linux/compiler.h>
8 #include <linux/const.h>
9 #include <linux/types.h>
11 #define BUG() \
12 do { \
13 asm volatile ("bkpt\n"); \
14 unreachable(); \
15 } while (0)
17 #define HAVE_ARCH_BUG
19 #include <asm-generic/bug.h>
21 struct pt_regs;
23 void die(struct pt_regs *regs, const char *str);
24 void show_regs(struct pt_regs *regs);
25 void show_code(struct pt_regs *regs);
27 #endif /* __ASM_CSKY_BUG_H */