patch-2.4.0-test6 linux/arch/mips/dec/prom/memory.c

Next file: linux/arch/mips/defconfig
Previous file: linux/arch/mips/dec/irq.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.4.0-test5/linux/arch/mips/dec/prom/memory.c linux/arch/mips/dec/prom/memory.c
@@ -149,8 +149,8 @@
 
 	addr = PAGE_SIZE;
 	while (addr < end) {
-		ClearPageReserved(mem_map + MAP_NR(addr));
-		set_page_count(mem_map + MAP_NR(addr), 1);
+		ClearPageReserved(virt_to_page(addr));
+		set_page_count(virt_to_page(addr), 1);
 		free_page(addr);
 		addr += PAGE_SIZE;
 	}

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