diff options
author | Star Zeng <star.zeng@intel.com> | 2015-07-27 03:04:41 +0000 |
---|---|---|
committer | lzeng14 <lzeng14@Edk2> | 2015-07-27 03:04:41 +0000 |
commit | 716087e2becafbac134a2cbd5e7cc6da684adc74 (patch) | |
tree | abdad696191ad4cbccf0e38364a8f0816d1161ac /MdeModulePkg/Universal/CapsulePei/CapsuleX64.inf | |
parent | 353f5ba92f9420266bbf5dd86c3faae35db6a478 (diff) | |
download | edk2-platforms-716087e2becafbac134a2cbd5e7cc6da684adc74.tar.xz |
MdeModulePkg CapsuleX64: Reduce reserved memory consumption
We are going to 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 build 4G page table by default and only use 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@18069 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'MdeModulePkg/Universal/CapsulePei/CapsuleX64.inf')
-rw-r--r-- | MdeModulePkg/Universal/CapsulePei/CapsuleX64.inf | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/MdeModulePkg/Universal/CapsulePei/CapsuleX64.inf b/MdeModulePkg/Universal/CapsulePei/CapsuleX64.inf index f9d9971ef1..1630dfc383 100644 --- a/MdeModulePkg/Universal/CapsulePei/CapsuleX64.inf +++ b/MdeModulePkg/Universal/CapsulePei/CapsuleX64.inf @@ -9,7 +9,7 @@ # This external input must be validated carefully to avoid security issue like
# buffer overflow, integer overflow.
#
-# Copyright (c) 2011 - 2014, Intel Corporation. All rights reserved.<BR>
+# Copyright (c) 2011 - 2015, Intel Corporation. All rights reserved.<BR>
#
# This program and the accompanying materials
# are licensed and made available under the terms and conditions
@@ -38,6 +38,8 @@ [Sources]
X64/X64Entry.c
+ X64/PageFaultHandler.asm
+ X64/PageFaultHandler.S
Common/CapsuleCoalesce.c
[Packages]
|