X-Git-Url: http://pilppa.org/gitweb/?a=blobdiff_plain;f=include%2Fasm-m68k%2Fbug.h;h=e5b528deb8a8496bb873c1ddffdf982eb074cbb2;hb=fa623d1b0222adbe8f822e53c08003b9679a410c;hp=3e1d2266fa69eed49ccbcf544946d592671562d8;hpb=1da177e4c3f41524e886b7f1b8a0c1fc7321cac2;p=linux-2.6-omap-h63xx.git diff --git a/include/asm-m68k/bug.h b/include/asm-m68k/bug.h index 3e1d2266fa6..e5b528deb8a 100644 --- a/include/asm-m68k/bug.h +++ b/include/asm-m68k/bug.h @@ -1,13 +1,13 @@ #ifndef _M68K_BUG_H #define _M68K_BUG_H -#include +#ifdef CONFIG_BUG #ifdef CONFIG_DEBUG_BUGVERBOSE #ifndef CONFIG_SUN3 #define BUG() do { \ printk("kernel BUG at %s:%d!\n", __FILE__, __LINE__); \ - asm volatile("illegal"); \ + __builtin_trap(); \ } while (0) #else #define BUG() do { \ @@ -17,11 +17,13 @@ #endif #else #define BUG() do { \ - asm volatile("illegal"); \ + __builtin_trap(); \ } while (0) #endif #define HAVE_ARCH_BUG +#endif + #include #endif