Skip to content
Commit 03b41371 authored by Daniel Leung's avatar Daniel Leung Committed by Anas Nashif
Browse files

x86: gen_mmu: double map physical/virtual memory at top level



This reuses the page directory pointer table (PAE=y) or page
directory (PAE=n) to point to next level page directory table
(PAE=y) or page tables (PAE=n) to identity map the physical
memory. This gets rid of the extra memory needed to host
the extra mappings which are only used at boot. Following
patches will have code to actual unmap physical memory
during the boot process, so this avoids some wasting of
memory.

Since no extra memory needs to be reserved, this also reverts
commit ee3d345c
("x86: mmu: reserve more space for page table if linking in virt").

Signed-off-by: default avatarAndrew Boie <andrew.p.boie@intel.com>
Signed-off-by: default avatarDaniel Leung <daniel.leung@intel.com>
parent dd0748a9
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment