blob: 0e36fd5d87df2f3d1771a9f34581cf82e17dfc2b [file] [log] [blame]
Linus Torvalds1da177e2005-04-16 15:20:36 -07001#ifndef _ASMARM_BUG_H
2#define _ASMARM_BUG_H
3
Linus Torvalds1da177e2005-04-16 15:20:36 -07004
Matt Mackallc8538a72005-05-01 08:59:01 -07005#ifdef CONFIG_BUG
Linus Torvalds1da177e2005-04-16 15:20:36 -07006#ifdef CONFIG_DEBUG_BUGVERBOSE
Al Viro33215652005-08-23 22:47:52 +01007extern void __bug(const char *file, int line, void *data) __attribute__((noreturn));
Linus Torvalds1da177e2005-04-16 15:20:36 -07008
9/* give file/line information */
10#define BUG() __bug(__FILE__, __LINE__, NULL)
11
12#else
13
14/* this just causes an oops */
15#define BUG() (*(int *)0 = 0)
16
17#endif
18
19#define HAVE_ARCH_BUG
Matt Mackallc8538a72005-05-01 08:59:01 -070020#endif
21
Linus Torvalds1da177e2005-04-16 15:20:36 -070022#include <asm-generic/bug.h>
23
24#endif