M7350/kernel/arch/sparc/include/asm/bug.h

26 lines
450 B
C
Raw Normal View History

2024-09-09 08:52:07 +00:00
#ifndef _SPARC_BUG_H
#define _SPARC_BUG_H
#ifdef CONFIG_BUG
#include <linux/compiler.h>
#ifdef CONFIG_DEBUG_BUGVERBOSE
2024-09-09 08:57:42 +00:00
void do_BUG(const char *file, int line);
2024-09-09 08:52:07 +00:00
#define BUG() do { \
do_BUG(__FILE__, __LINE__); \
__builtin_trap(); \
} while (0)
#else
#define BUG() __builtin_trap()
#endif
#define HAVE_ARCH_BUG
#endif
#include <asm-generic/bug.h>
struct pt_regs;
2024-09-09 08:57:42 +00:00
void __noreturn die_if_kernel(char *str, struct pt_regs *regs);
2024-09-09 08:52:07 +00:00
#endif