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