Merge tag 'for_linus' of git://git.kernel.org/pub/scm/linux/kernel/git/mst/vhost
[cris-mirror.git] / arch / arc / include / asm / bug.h
blob21ec82466d62c89922566ec3bf32551c2dce003b
1 /*
2 * Copyright (C) 2004, 2007-2010, 2011-2012 Synopsys, Inc. (www.synopsys.com)
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 */
9 #ifndef _ASM_ARC_BUG_H
10 #define _ASM_ARC_BUG_H
12 #ifndef __ASSEMBLY__
14 #include <asm/ptrace.h>
16 struct task_struct;
18 void show_regs(struct pt_regs *regs);
19 void show_stacktrace(struct task_struct *tsk, struct pt_regs *regs);
20 void show_kernel_fault_diag(const char *str, struct pt_regs *regs,
21 unsigned long address);
22 void die(const char *str, struct pt_regs *regs, unsigned long address);
24 #define BUG() do { \
25 pr_warn("BUG: failure at %s:%d/%s()!\n", __FILE__, __LINE__, __func__); \
26 barrier_before_unreachable(); \
27 __builtin_trap(); \
28 } while (0)
30 #define HAVE_ARCH_BUG
32 #include <asm-generic/bug.h>
34 #endif /* !__ASSEMBLY__ */
36 #endif