blob: 8545d58b0475ba5646b20df3b00fb7f80bbf2e44 [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
7extern volatile void __bug(const char *file, int line, void *data);
8/* give file/line information */
9#define BUG() __bug(__FILE__, __LINE__, NULL)
10#else
11#define BUG() (*(int *)0 = 0)
12#endif
13
14#define HAVE_ARCH_BUG
Matt Mackallc8538a72005-05-01 08:59:01 -070015#endif
16
Linus Torvalds1da177e2005-04-16 15:20:36 -070017#include <asm-generic/bug.h>
18
19#endif