patch-2.4.0-test6 linux/include/asm-arm/page.h
Next file: linux/include/asm-arm/pgtable.h
Previous file: linux/include/asm-arm/hardirq.h
Back to the patch index
Back to the overall index
- Lines: 9
- Date:
Wed Aug 9 13:46:01 2000
- Orig file:
v2.4.0-test5/linux/include/asm-arm/page.h
- Orig date:
Fri Jun 23 21:55:11 2000
diff -u --recursive --new-file v2.4.0-test5/linux/include/asm-arm/page.h linux/include/asm-arm/page.h
@@ -92,6 +92,8 @@
#ifndef CONFIG_DISCONTIGMEM
#define MAP_NR(addr) ((__pa(addr) - PHYS_OFFSET) >> PAGE_SHIFT)
+#define virt_to_page(kaddr) (mem_map + ((__pa(kaddr) - PHYS_OFFSET) >> PAGE_SHIFT))
+#define VALID_PAGE(page) ((page - mem_map) < max_mapnr)
#endif
#endif
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)