Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
torvalds
GitHub Repository: torvalds/linux
Path: blob/master/arch/csky/include/asm/bug.h
26493 views
1
/* SPDX-License-Identifier: GPL-2.0 */
2
3
#ifndef __ASM_CSKY_BUG_H
4
#define __ASM_CSKY_BUG_H
5
6
#include <linux/compiler.h>
7
#include <linux/const.h>
8
#include <linux/types.h>
9
10
#define BUG() \
11
do { \
12
asm volatile ("bkpt\n"); \
13
unreachable(); \
14
} while (0)
15
16
#define HAVE_ARCH_BUG
17
18
#include <asm-generic/bug.h>
19
20
struct pt_regs;
21
22
void die(struct pt_regs *regs, const char *str);
23
void do_trap(struct pt_regs *regs, int signo, int code, unsigned long addr);
24
25
void show_regs(struct pt_regs *regs);
26
void show_code(struct pt_regs *regs);
27
28
#endif /* __ASM_CSKY_BUG_H */
29
30