Skip to contentSkip to conversation

kanoj-mm24-2.3.25 nonPAE ia32 zap_low_mappings fix

PATCH New Kanoj Sarcar 1 participant 1 message Nov 5, 1999

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 kanoj-mm24-2.3.25 nonPAE ia32 zap_low_mappings fix

Linus,

Could you please add in this patch into 2.3.26. It is needed for *(int *0) = 0 to panic (after smp_init()) to catch kernel problems.

Thanks.

Kanoj

i386/mm/init.c renamed from usr/tmp/p_rdiff_a005Oh/init.c +5 -0
@@ -382,7 +382,12 @@
 	 * Zap initial low-memory mappings:
 	 */
 	for (i = 0; i < USER_PTRS_PER_PGD; i++)
+#if CONFIG_X86_PAE
 		pgd_clear(swapper_pg_dir + i);
+#else
+		pmd_clear((pmd_t *)swapper_pg_dir + i);
+#endif
+	flush_tlb_all();
 }
 
 /*

--
To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to [email protected]. For more info on Linux MM,
see: http://humbolt.geo.uu.nl/Linux-MM/