blob: f3a9c9248ef4c788826a2a6a7ec5d71c4c50f38f [file] [log] [blame]
Linus Torvalds1da177e2005-04-16 15:20:36 -07001#ifndef __ASM_SH64_BUG_H
2#define __ASM_SH64_BUG_H
3
Paul Mundt56060142006-09-12 14:38:23 +09004#ifdef CONFIG_BUG
Linus Torvalds1da177e2005-04-16 15:20:36 -07005/*
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 Mundt56060142006-09-12 14:38:23 +090014#define HAVE_ARCH_BUG
15#endif
Linus Torvalds1da177e2005-04-16 15:20:36 -070016
Paul Mundt56060142006-09-12 14:38:23 +090017#include <asm-generic/bug.h>
Linus Torvalds1da177e2005-04-16 15:20:36 -070018
19#endif /* __ASM_SH64_BUG_H */