mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: asgard <just.asgard@gmail.com>
To: linux-kernel@vger.kernel.org
Subject: question about identiry map(x86)
Date: Fri, 19 Jan 2007 18:02:36 +0300	[thread overview]
Message-ID: <1169218956.5191.21.camel@midgard> (raw)

Hi, all.

On early boot stage linux maps only 8M(arch/i386/kernel/head.S).
It creates identity map and kernel map like this:
0x00000000 - 0x007FFFFF -> 0x00000000 -> 0x007FFFFF /* identity map */
0xC0000000 - 0xC07FFFFF -> 0x00000000 -> 0x007FFFFF /* kernel map */

On early boot stage identity map is needed for jumping to 0xC0000000.
Intel manual says, that after such jumping identity map can be deleted.

(arch/i386/mm/init.c)
Linux deletes early boot identity map, but when it maps 1G(all kernel
space) in kernel_physical_map_init, it creates another one identity map:
0x00000000 - 0x01FFFFFF -> 0x00000000 - 0x01FFFFFF /* NEW identity map
*/
0xC0000000 - 0xC1FFFFFF -> 0x00000000 - 0x01FFFFFF /* 1G kernel map */

so, question is: are there any significant reasons to create identity
map after jumping was done? As I know, after jumping kernel doesn't need
in identity map. So, if, for example, PAE is enabled for creation middle
directory kernel allocates 4K. And when identity map creates, kernel
loses some mem. So, why identity map is created in this case.

Thanks and good luck. 


                 reply	other threads:[~2007-01-19 15:02 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=1169218956.5191.21.camel@midgard \
    --to=just.asgard@gmail.com \
    --cc=linux-kernel@vger.kernel.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

all inboxes | Powered by JetHome®