]> git.proxmox.com Git - mirror_edk2.git/commit
MdeModulePkg DxeCore: Take the range in resource HOB for PHIT as higher priority
authorStar Zeng <star.zeng@intel.com>
Fri, 18 Sep 2015 02:02:11 +0000 (02:02 +0000)
committerlzeng14 <lzeng14@Edk2>
Fri, 18 Sep 2015 02:02:11 +0000 (02:02 +0000)
commit3a05b13106d15ae161489d43d9d2f2311b2241db
treee7b0cc744a92689d2c6239dd907f345a06b488ff
parent1fab91765f9c3687ba48625323b634f246c2ee10
MdeModulePkg DxeCore: Take the range in resource HOB for PHIT as higher priority

Take the range in the resource descriptor HOB for the memory region described
by the PHIT as higher priority if it is big enough. It can make the memory bin
allocated to be at the same memory region with PHIT that has more better compatibility
to avoid memory fragmentation for some code practices assume and allocate <4G ACPI memory.

Also let the minimal memory size needed include the total memory bin size needed to
make sure memory bin could be allocated successfully.

Cc: Jiewen Yao <jiewen.yao@intel.com>
Cc: Liming Gao <liming.gao@intel.com>
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Star Zeng <star.zeng@intel.com>
Reviewed-by: Jiewen Yao <jiewen.yao@intel.com>
Reviewed-by: Liming Gao <liming.gao@intel.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@18503 6f19259b-4bc3-4df7-8a09-765794883524
MdeModulePkg/Core/Dxe/Gcd/Gcd.c