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

Next file: linux/drivers/block/ide.c
Previous file: linux/arch/i386/defconfig
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v1.3.85/linux/arch/i386/mm/init.c linux/arch/i386/mm/init.c
@@ -153,8 +153,13 @@
 	pg_dir = swapper_pg_dir;
 	while (address < end_mem) {
 #ifdef USE_PENTIUM_MM
-		if (address + 4*1024*1024 <= end_mem &&
-		    (x86_capability & 8)) {
+		/*
+		 * This will create page tables that
+		 * span up to the next 4MB virtual
+		 * memory boundary, but that's ok,
+		 * we won't use that memory anyway.
+		 */
+		if (x86_capability & 8) {
 #ifdef GAS_KNOWS_CR4
 			__asm__("movl %%cr4,%%eax\n\t"
 				"orl $16,%%eax\n\t"

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov with Sam's (original) version
of this