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