patch-2.3.23 linux/include/asm-arm/arch-rpc/memory.h
Next file: linux/include/asm-arm/arch-rpc/mm-init.h
Previous file: linux/include/asm-arm/arch-rpc/irq.h
Back to the patch index
Back to the overall index
- Lines: 22
- Date:
Wed Oct 20 16:29:08 1999
- Orig file:
v2.3.22/linux/include/asm-arm/arch-rpc/memory.h
- Orig date:
Sat May 8 11:06:57 1999
diff -u --recursive --new-file v2.3.22/linux/include/asm-arm/arch-rpc/memory.h linux/include/asm-arm/arch-rpc/memory.h
@@ -18,16 +18,17 @@
* Task size: 3GB
*/
#define TASK_SIZE (0xc0000000UL)
+#define TASK_SIZE_26 (0x04000000UL)
/*
* Page offset: 3GB
*/
#define PAGE_OFFSET (0xc0000000UL)
-#ifndef __ASSEMBLY__
-extern unsigned long __virt_to_phys(unsigned long vpage);
-extern unsigned long __phys_to_virt(unsigned long ppage);
-#endif
+#define __virt_to_phys__is_a_macro
+#define __virt_to_phys(vpage) ((vpage) - PAGE_OFFSET + 0x10000000)
+#define __phys_to_virt__is_a_macro
+#define __phys_to_virt(ppage) ((ppage) + PAGE_OFFSET - 0x10000000)
/*
* These are exactly the same on the RiscPC as the
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)