patch-2.3.7 linux/include/asm-i386/page.h
Next file: linux/include/asm-i386/smplock.h
Previous file: linux/include/asm-arm/unistd.h
Back to the patch index
Back to the overall index
- Lines: 20
- Date:
Sun Jun 20 17:46:13 1999
- Orig file:
v2.3.6/linux/include/asm-i386/page.h
- Orig date:
Tue Jun 8 23:03:39 1999
diff -u --recursive --new-file v2.3.6/linux/include/asm-i386/page.h linux/include/asm-i386/page.h
@@ -84,6 +84,19 @@
#define __PAGE_OFFSET (PAGE_OFFSET_RAW)
+#ifndef __ASSEMBLY__
+
+#define BUG() do { \
+ printk("kernel BUG at %s:%d!\n", __FILE__, __LINE__); \
+ __asm__ __volatile__(".byte 0x0f,0x0b"); \
+} while (0)
+
+#define PAGE_BUG(page) do { \
+ BUG(); \
+} while (0)
+
+#endif /* __ASSEMBLY__ */
+
#define PAGE_OFFSET ((unsigned long)__PAGE_OFFSET)
#define __pa(x) ((unsigned long)(x)-PAGE_OFFSET)
#define __va(x) ((void *)((unsigned long)(x)+PAGE_OFFSET))
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)