HEX
Server: nginx/1.24.0
System: Linux webserver 6.8.0-87-generic #88-Ubuntu SMP PREEMPT_DYNAMIC Sat Oct 11 09:28:41 UTC 2025 x86_64
User: wpuser (1002)
PHP: 8.3.6
Disabled: NONE
Upload Files
File: //proc/thread-self/root/usr/src/linux-headers-6.8.0-90/arch/csky/include/asm/bug.h
/* SPDX-License-Identifier: GPL-2.0 */

#ifndef __ASM_CSKY_BUG_H
#define __ASM_CSKY_BUG_H

#include <linux/compiler.h>
#include <linux/const.h>
#include <linux/types.h>

#define BUG()				\
do {					\
	asm volatile ("bkpt\n");	\
	unreachable();			\
} while (0)

#define HAVE_ARCH_BUG

#include <asm-generic/bug.h>

struct pt_regs;

void die(struct pt_regs *regs, const char *str);
void do_trap(struct pt_regs *regs, int signo, int code, unsigned long addr);

void show_regs(struct pt_regs *regs);
void show_code(struct pt_regs *regs);

#endif /* __ASM_CSKY_BUG_H */