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