blob: 7ddaa05b98d8406b9988921b5275179083bd8e94 [file] [log] [blame]
Linus Torvalds1da177e2005-04-16 15:20:36 -07001#ifndef _S390_BUG_H
2#define _S390_BUG_H
3
4#include <linux/kernel.h>
5
Matt Mackallc8538a72005-05-01 08:59:01 -07006#ifdef CONFIG_BUG
Martin Schwidefsky4896cef2006-03-24 03:15:16 -08007
Linus Torvalds1da177e2005-04-16 15:20:36 -07008#define BUG() do { \
Martin Schwidefsky4896cef2006-03-24 03:15:16 -08009 printk("kernel BUG at %s:%d!\n", __FILE__, __LINE__); \
10 __builtin_trap(); \
Linus Torvalds1da177e2005-04-16 15:20:36 -070011} while (0)
12
13#define HAVE_ARCH_BUG
Matt Mackallc8538a72005-05-01 08:59:01 -070014#endif
15
Linus Torvalds1da177e2005-04-16 15:20:36 -070016#include <asm-generic/bug.h>
17
18#endif