linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
From: kanoj@google.engr.sgi.com (Kanoj Sarcar)
To: torvalds@transmeta.com
Cc: linux-mm@kvack.org
Subject: [PATCH] kanoj-mm24-2.3.25 nonPAE ia32 zap_low_mappings fix
Date: Fri, 5 Nov 1999 14:11:41 -0800 (PST)	[thread overview]
Message-ID: <199911052211.OAA61667@google.engr.sgi.com> (raw)

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/

                 reply	other threads:[~1999-11-05 22:11 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=199911052211.OAA61667@google.engr.sgi.com \
    --to=kanoj@google.engr.sgi.com \
    --cc=linux-mm@kvack.org \
    --cc=torvalds@transmeta.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox