patch-2.3.26 linux/arch/i386/mm/init.c

Next file: linux/arch/m68k/config.in
Previous file: linux/arch/i386/math-emu/version.h
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.3.25/linux/arch/i386/mm/init.c linux/arch/i386/mm/init.c
@@ -379,10 +379,16 @@
 {
 	int i;
 	/*
-	 * Zap initial low-memory mappings:
+	 * Zap initial low-memory mappings.
+	 *
+	 * Note that "pgd_clear()" doesn't do it for
+	 * us in this case, because pgd_clear() is a
+	 * no-op in the 2-level case (pmd_clear() is
+	 * the thing that clears the page-tables in
+	 * that case).
 	 */
 	for (i = 0; i < USER_PTRS_PER_PGD; i++)
-		pgd_clear(swapper_pg_dir + i);
+		pgd_val(swapper_pg_dir[i]) = 0;
 }
 
 /*

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