patch-2.4.26 linux-2.4.26/include/asm-ia64/page.h
Next file: linux-2.4.26/include/asm-ia64/param.h
Previous file: linux-2.4.26/include/asm-ia64/namei.h
Back to the patch index
Back to the overall index
- Lines: 15
- Date:
2004-04-14 06:05:40.000000000 -0700
- Orig file:
linux-2.4.25/include/asm-ia64/page.h
- Orig date:
2004-02-18 05:36:32.000000000 -0800
diff -urN linux-2.4.25/include/asm-ia64/page.h linux-2.4.26/include/asm-ia64/page.h
@@ -120,7 +120,13 @@
#define is_invalid_hugepage_range(addr, len) 0
#endif
-#define BUG() do { printk("kernel BUG at %s:%d!\n", __FILE__, __LINE__); *(int *)0=0; } while (0)
+#if (__GNUC__ > 3) || (__GNUC__ == 3 && __GNUC_MINOR__ >= 1)
+# define ia64_abort() __builtin_trap()
+#else
+# define ia64_abort() (*(volatile int *) 0 = 0)
+#endif
+
+#define BUG() do { printk("kernel BUG at %s:%d!\n", __FILE__, __LINE__); ia64_abort(); } while (0)
#define PAGE_BUG(page) do { BUG(); } while (0)
static __inline__ int
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)