David Brazdil | 0f672f6 | 2019-12-10 10:32:29 +0000 | [diff] [blame] | 1 | /* SPDX-License-Identifier: GPL-2.0 */ |
| 2 | // Copyright (C) 2018 Hangzhou C-SKY Microsystems co.,ltd. |
| 3 | |
| 4 | #ifndef __ASM_CSKY_BUG_H |
| 5 | #define __ASM_CSKY_BUG_H |
| 6 | |
| 7 | #include <linux/compiler.h> |
| 8 | #include <linux/const.h> |
| 9 | #include <linux/types.h> |
| 10 | |
| 11 | #define BUG() \ |
| 12 | do { \ |
| 13 | asm volatile ("bkpt\n"); \ |
| 14 | unreachable(); \ |
| 15 | } while (0) |
| 16 | |
| 17 | #define HAVE_ARCH_BUG |
| 18 | |
| 19 | #include <asm-generic/bug.h> |
| 20 | |
| 21 | struct pt_regs; |
| 22 | |
Olivier Deprez | 157378f | 2022-04-04 15:47:50 +0200 | [diff] [blame^] | 23 | void die(struct pt_regs *regs, const char *str); |
David Brazdil | 0f672f6 | 2019-12-10 10:32:29 +0000 | [diff] [blame] | 24 | void show_regs(struct pt_regs *regs); |
Olivier Deprez | 157378f | 2022-04-04 15:47:50 +0200 | [diff] [blame^] | 25 | void show_code(struct pt_regs *regs); |
David Brazdil | 0f672f6 | 2019-12-10 10:32:29 +0000 | [diff] [blame] | 26 | |
| 27 | #endif /* __ASM_CSKY_BUG_H */ |