1 /* SPDX-License-Identifier: GPL-2.0-only */ 1 2 /* 3 * Copyright (C) 2004, 2007-2010, 2011-2012 Sy 4 */ 5 6 #ifndef _ASM_ARC_BUG_H 7 #define _ASM_ARC_BUG_H 8 9 #ifndef __ASSEMBLY__ 10 11 #include <asm/ptrace.h> 12 13 struct task_struct; 14 15 void show_regs(struct pt_regs *regs); 16 void show_stacktrace(struct task_struct *tsk, 17 const char *loglvl); 18 void show_kernel_fault_diag(const char *str, s 19 unsigned long addr 20 void die(const char *str, struct pt_regs *regs 21 22 #define BUG() do { 23 pr_warn("BUG: failure at %s:%d/%s()!\n 24 barrier_before_unreachable(); 25 __builtin_trap(); 26 } while (0) 27 28 #define HAVE_ARCH_BUG 29 30 #include <asm-generic/bug.h> 31 32 #endif /* !__ASSEMBLY__ */ 33 34 #endif 35
Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.