Files

35 lines
821 B
C
Raw Permalink Normal View History

/* SPDX-License-Identifier: GPL-2.0-only */
2013-01-18 15:12:17 +05:30
/*
* Copyright (C) 2004, 2007-2010, 2011-2012 Synopsys, Inc. (www.synopsys.com)
*/
#ifndef _ASM_ARC_BUG_H
#define _ASM_ARC_BUG_H
#ifndef __ASSEMBLER__
2013-01-18 15:12:17 +05:30
#include <asm/ptrace.h>
struct task_struct;
void show_regs(struct pt_regs *regs);
2020-06-08 21:30:04 -07:00
void show_stacktrace(struct task_struct *tsk, struct pt_regs *regs,
const char *loglvl);
2013-01-18 15:12:17 +05:30
void show_kernel_fault_diag(const char *str, struct pt_regs *regs,
2013-06-12 15:13:40 +05:30
unsigned long address);
void die(const char *str, struct pt_regs *regs, unsigned long address);
2013-01-18 15:12:17 +05:30
#define BUG() do { \
pr_warn("BUG: failure at %s:%d/%s()!\n", __FILE__, __LINE__, __func__); \
2018-02-21 14:45:54 -08:00
barrier_before_unreachable(); \
__builtin_trap(); \
2013-01-18 15:12:17 +05:30
} while (0)
#define HAVE_ARCH_BUG
#include <asm-generic/bug.h>
#endif /* !__ASSEMBLER__ */
2013-01-18 15:12:17 +05:30
#endif