X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=include%2Fasm-sh64%2Fbug.h;h=f3a9c9248ef4c788826a2a6a7ec5d71c4c50f38f;hb=16c70f8c1b54b61c3b951b6fb220df250fe09b32;hp=9a81b7232f14cf4316cbeb723fcd6183cb211a81;hpb=5fc42a6ed0ec81088c37caadb45898ae6cd0ad2c;p=linux-2.6.git diff --git a/include/asm-sh64/bug.h b/include/asm-sh64/bug.h index 9a81b7232..f3a9c9248 100644 --- a/include/asm-sh64/bug.h +++ b/include/asm-sh64/bug.h @@ -1,7 +1,19 @@ #ifndef __ASM_SH64_BUG_H #define __ASM_SH64_BUG_H -#include +#ifdef CONFIG_BUG +/* + * Tell the user there is some problem, then force a segfault (in process + * context) or a panic (interrupt context). + */ +#define BUG() do { \ + printk("kernel BUG at %s:%d!\n", __FILE__, __LINE__); \ + *(volatile int *)0 = 0; \ +} while (0) -#endif /* __ASM_SH64_BUG_H */ +#define HAVE_ARCH_BUG +#endif + +#include +#endif /* __ASM_SH64_BUG_H */