]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/blame - arch/sparc/include/asm/bug.h
Merge remote-tracking branches 'asoc/topic/omap', 'asoc/topic/oom' and 'asoc/topic...
[mirror_ubuntu-artful-kernel.git] / arch / sparc / include / asm / bug.h
CommitLineData
1da177e4
LT
1#ifndef _SPARC_BUG_H
2#define _SPARC_BUG_H
3
c8538a7a 4#ifdef CONFIG_BUG
e10195c2 5#include <linux/compiler.h>
1da177e4
LT
6
7#ifdef CONFIG_DEBUG_BUGVERBOSE
f05a6865 8void do_BUG(const char *file, int line);
1da177e4
LT
9#define BUG() do { \
10 do_BUG(__FILE__, __LINE__); \
e10195c2 11 __builtin_trap(); \
1da177e4
LT
12} while (0)
13#else
e10195c2 14#define BUG() __builtin_trap()
1da177e4
LT
15#endif
16
17#define HAVE_ARCH_BUG
c8538a7a
MM
18#endif
19
1da177e4
LT
20#include <asm-generic/bug.h>
21
d550bbd4 22struct pt_regs;
fcd0196b 23void __noreturn die_if_kernel(char *str, struct pt_regs *regs);
d550bbd4 24
1da177e4 25#endif