blob: 5ab8216f5204aa7f204cd5b34fffb228428ff618 [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>
Nicolas Pitreff109522006-05-05 15:11:14 +01005#include <linux/stddef.h>
Linus Torvalds1da177e2005-04-16 15:20:36 -07006
Matt Mackallc8538a72005-05-01 08:59:01 -07007#ifdef CONFIG_BUG
Linus Torvalds1da177e2005-04-16 15:20:36 -07008#ifdef CONFIG_DEBUG_BUGVERBOSE
Al Viro33215652005-08-23 22:47:52 +01009extern void __bug(const char *file, int line, void *data) __attribute__((noreturn));
Linus Torvalds1da177e2005-04-16 15:20:36 -070010
11/* give file/line information */
12#define BUG() __bug(__FILE__, __LINE__, NULL)
13
14#else
15
16/* this just causes an oops */
17#define BUG() (*(int *)0 = 0)
18
19#endif
20
21#define HAVE_ARCH_BUG
Matt Mackallc8538a72005-05-01 08:59:01 -070022#endif
23
Linus Torvalds1da177e2005-04-16 15:20:36 -070024#include <asm-generic/bug.h>
25
26#endif