blob: 2ad8f9b1c54b047f91250285b65efdae32ce35c1 [file] [log] [blame]
Vineet Gupta3be80aa2013-01-18 15:12:17 +05301/*
2 * Copyright (C) 2004, 2007-2010, 2011-2012 Synopsys, Inc. (www.synopsys.com)
3 *
4 * This program is free software; you can redistribute it and/or modify
5 * it under the terms of the GNU General Public License version 2 as
6 * published by the Free Software Foundation.
7 */
8
9#ifndef _ASM_ARC_BUG_H
10#define _ASM_ARC_BUG_H
11
12#ifndef __ASSEMBLY__
13
14#include <asm/ptrace.h>
15
16struct task_struct;
17
18void show_regs(struct pt_regs *regs);
19void show_stacktrace(struct task_struct *tsk, struct pt_regs *regs);
20void show_kernel_fault_diag(const char *str, struct pt_regs *regs,
21 unsigned long address, unsigned long cause_reg);
22void die(const char *str, struct pt_regs *regs, unsigned long address,
23 unsigned long cause_reg);
24
25#define BUG() do { \
26 dump_stack(); \
27 pr_warn("Kernel BUG in %s: %s: %d!\n", \
28 __FILE__, __func__, __LINE__); \
29} while (0)
30
31#define HAVE_ARCH_BUG
32
33#include <asm-generic/bug.h>
34
35#endif /* !__ASSEMBLY__ */
36
37#endif