kernelnewbies.kernelnewbies.org archive mirror
 help / color / mirror / Atom feed
From: june.tune.sea@gmail.com (ishare)
To: kernelnewbies@lists.kernelnewbies.org
Subject: zap_low_mappings
Date: Thu, 7 Mar 2013 11:43:43 +0800	[thread overview]
Message-ID: <20130307034342.GA17978@debian.localdomain> (raw)
In-Reply-To: <8572.1362626368@turing-police.cc.vt.edu>



sorry for my outof date kernel .

In the zap_low_mappingd function.there is a selection for kernel,as below:

   #ifdef CONFIG_X86_PAE
   	  set_pgd(swapper_pg_dir+i, __pgd(1 + __pa(empty_zero_page)));
   #else
		set_pgd(swapper_pg_dir+i, __pgd(0));
   #endif

If I have not define CONFIG_X86_PAE ,then the low mem will be invalided all . so any addressing 
operation will cause a page_fault because that page is not present.

Am I right ?

  reply	other threads:[~2013-03-07  3:43 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-03-07  2:33 zap_low_mappings ishare
2013-03-07  3:19 ` zap_low_mappings Valdis.Kletnieks at vt.edu
2013-03-07  3:43   ` ishare [this message]
2013-03-07  4:00     ` zap_low_mappings Valdis.Kletnieks at vt.edu
2013-03-07  4:48       ` zap_low_mappings ishare
2013-03-07  5:34         ` zap_low_mappings Valdis.Kletnieks at vt.edu
2013-03-07 11:50           ` zap_low_mappings ishare

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=20130307034342.GA17978@debian.localdomain \
    --to=june.tune.sea@gmail.com \
    --cc=kernelnewbies@lists.kernelnewbies.org \
    /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;
as well as URLs for NNTP newsgroup(s).