blob: 072ce274d53751d3ecbff96f0b2dca93b8056e97 [file] [log] [blame]
Linus Torvalds1da177e2005-04-16 15:20:36 -07001#ifndef _M68K_BUG_H
2#define _M68K_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
8#ifndef CONFIG_SUN3
9#define BUG() do { \
10 printk("kernel BUG at %s:%d!\n", __FILE__, __LINE__); \
11 asm volatile("illegal"); \
12} while (0)
13#else
14#define BUG() do { \
15 printk("kernel BUG at %s:%d!\n", __FILE__, __LINE__); \
16 panic("BUG!"); \
17} while (0)
18#endif
19#else
20#define BUG() do { \
21 asm volatile("illegal"); \
22} while (0)
23#endif
24
25#define HAVE_ARCH_BUG
Matt Mackallc8538a72005-05-01 08:59:01 -070026#endif
27
Linus Torvalds1da177e2005-04-16 15:20:36 -070028#include <asm-generic/bug.h>
29
30#endif