]> git.proxmox.com Git - mirror_edk2.git/commit - MdeModulePkg/Universal/CapsuleRuntimeDxe/CapsuleRuntimeDxe.inf
MdeModulePkg CapsuleRuntimeDxe: Reduce reserved memory consumption
authorStar Zeng <star.zeng@intel.com>
Mon, 27 Jul 2015 03:05:13 +0000 (03:05 +0000)
committerlzeng14 <lzeng14@Edk2>
Mon, 27 Jul 2015 03:05:13 +0000 (03:05 +0000)
commitb2d2a7f3f2fff5576945881c5c4ee5f293604465
tree2318b4f4bbf9824ecb5dab7986a384eaa9bfcc17
parent716087e2becafbac134a2cbd5e7cc6da684adc74
MdeModulePkg CapsuleRuntimeDxe: Reduce reserved memory consumption

Reduce reserved memory consumption by page table buffer,
then OS can have more available memory to use.
Take PhysicalAddressBits = 48 and 2MB page granularity as example,
1:1 Virtual to Physical identity mapping page table buffer needs to be
((512 + 1) * 512 + 1) * 4096 = 1075843072 bytes = 0x40201000 bytes.

The code is updated to only allocate 2 pages (1G page enabled) or
6 pages for 4G page table, and 8 extra pages to handles > 4G request
by page fault.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Star Zeng <star.zeng@intel.com>
Reviewed-by: Jiewen Yao <jiewen.yao@intel.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@18070 6f19259b-4bc3-4df7-8a09-765794883524
MdeModulePkg/Universal/CapsuleRuntimeDxe/CapsuleRuntimeDxe.inf
MdeModulePkg/Universal/CapsuleRuntimeDxe/X64/SaveLongModeContext.c