| Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 1 | #ifndef _S390_BUG_H |
| 2 | #define _S390_BUG_H | ||||
| 3 | |||||
| 4 | #include <linux/kernel.h> | ||||
| 5 | |||||
| Matt Mackall | c8538a7 | 2005-05-01 08:59:01 -0700 | [diff] [blame] | 6 | #ifdef CONFIG_BUG |
| Martin Schwidefsky | 4896cef | 2006-03-24 03:15:16 -0800 | [diff] [blame] | 7 | |
| Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 8 | #define BUG() do { \ |
| Martin Schwidefsky | 4896cef | 2006-03-24 03:15:16 -0800 | [diff] [blame] | 9 | printk("kernel BUG at %s:%d!\n", __FILE__, __LINE__); \ |
| 10 | __builtin_trap(); \ | ||||
| Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 11 | } while (0) |
| 12 | |||||
| 13 | #define HAVE_ARCH_BUG | ||||
| Matt Mackall | c8538a7 | 2005-05-01 08:59:01 -0700 | [diff] [blame] | 14 | #endif |
| 15 | |||||
| Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 16 | #include <asm-generic/bug.h> |
| 17 | |||||
| 18 | #endif | ||||