patch-2.0.21-2.1.0 linux/include/asm-i386/page.h
Next file: linux/include/asm-i386/pgtable.h
Previous file: linux/include/asm-i386/ldt.h
Back to the patch index
Back to the overall index
- Lines: 13
- Date:
Mon Sep 23 09:17:09 1996
- Orig file:
lx2.0/v2.0.21/linux/include/asm-i386/page.h
- Orig date:
Thu Nov 30 14:12:41 1995
diff -u --recursive --new-file lx2.0/v2.0.21/linux/include/asm-i386/page.h linux/include/asm-i386/page.h
@@ -54,8 +54,10 @@
#define PAGE_ALIGN(addr) (((addr)+PAGE_SIZE-1)&PAGE_MASK)
/* This handles the memory map.. */
-#define PAGE_OFFSET 0
-#define MAP_NR(addr) (((unsigned long)(addr)) >> PAGE_SHIFT)
+#define PAGE_OFFSET 0xC0000000
+#define __pa(x) ((unsigned long)(x)-PAGE_OFFSET)
+#define __va(x) ((void *)((unsigned long)(x)+PAGE_OFFSET))
+#define MAP_NR(addr) (__pa(addr) >> PAGE_SHIFT)
#endif /* __KERNEL__ */
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov