patch-2.3.11 linux/include/asm-arm/page.h
Next file: linux/include/asm-arm/processor.h
Previous file: linux/include/asm-arm/io.h
Back to the patch index
Back to the overall index
- Lines: 20
- Date:
Mon Jul 19 09:52:57 1999
- Orig file:
v2.3.10/linux/include/asm-arm/page.h
- Orig date:
Sat May 8 11:06:57 1999
diff -u --recursive --new-file v2.3.10/linux/include/asm-arm/page.h linux/include/asm-arm/page.h
@@ -6,6 +6,19 @@
#ifdef __KERNEL__
+#ifndef __ASSEMBLY__
+
+#define BUG() do { \
+ printk("kernel BUG at %s:%d!\n", __FILE__, __LINE__); \
+ *(int *)0 = 0; \
+} while (0)
+
+#define PAGE_BUG(page) do { \
+ BUG(); \
+} while (0)
+
+#endif /* __ASSEMBLY__ */
+
#define get_user_page(vaddr) __get_free_page(GFP_KERNEL)
#define free_user_page(page, addr) free_page(addr)
#define clear_page(page) memzero((void *)(page), PAGE_SIZE)
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)