patch-2.4.0-test6 linux/arch/arm/mm/mm-armv.c

Next file: linux/arch/arm/mm/small_page.c
Previous file: linux/arch/arm/mm/init.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.4.0-test5/linux/arch/arm/mm/mm-armv.c linux/arch/arm/mm/mm-armv.c
@@ -417,8 +417,8 @@
 	start = __phys_to_virt(start);
 	end   = __phys_to_virt(end);
 
-	pg    = PAGE_ALIGN((unsigned long)(mem_map + MAP_NR(start)));
-	pgend = ((unsigned long)(mem_map + MAP_NR(end))) & PAGE_MASK;
+	pg    = PAGE_ALIGN((unsigned long)(virt_to_page(start)));
+	pgend = ((unsigned long)(virt_to_page(end))) & PAGE_MASK;
 
 	start = __virt_to_phys(pg);
 	end   = __virt_to_phys(pgend);

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)