Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 1 | #ifndef __ASM_SH64_BUG_H |
| 2 | #define __ASM_SH64_BUG_H |
| 3 | |
Paul Mundt | 5606014 | 2006-09-12 14:38:23 +0900 | [diff] [blame] | 4 | #ifdef CONFIG_BUG |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 5 | /* |
| 6 | * Tell the user there is some problem, then force a segfault (in process |
| 7 | * context) or a panic (interrupt context). |
| 8 | */ |
| 9 | #define BUG() do { \ |
| 10 | printk("kernel BUG at %s:%d!\n", __FILE__, __LINE__); \ |
| 11 | *(volatile int *)0 = 0; \ |
| 12 | } while (0) |
| 13 | |
Paul Mundt | 5606014 | 2006-09-12 14:38:23 +0900 | [diff] [blame] | 14 | #define HAVE_ARCH_BUG |
| 15 | #endif |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 16 | |
Paul Mundt | 5606014 | 2006-09-12 14:38:23 +0900 | [diff] [blame] | 17 | #include <asm-generic/bug.h> |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 18 | |
| 19 | #endif /* __ASM_SH64_BUG_H */ |