linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] kanoj-mm24-2.3.25 nonPAE ia32 zap_low_mappings fix
@ 1999-11-05 22:11 Kanoj Sarcar
  0 siblings, 0 replies; only message in thread
From: Kanoj Sarcar @ 1999-11-05 22:11 UTC (permalink / raw)
  To: torvalds; +Cc: linux-mm

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

--- /usr/tmp/p_rdiff_a005Oh/init.c	Fri Nov  5 14:05:50 1999
+++ arch/i386/mm/init.c	Fri Nov  5 13:01:50 1999
@@ -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 majordomo@kvack.org.  For more info on Linux MM,
see: http://humbolt.geo.uu.nl/Linux-MM/

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~1999-11-05 22:11 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1999-11-05 22:11 [PATCH] kanoj-mm24-2.3.25 nonPAE ia32 zap_low_mappings fix Kanoj Sarcar

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox