summaryrefslogtreecommitdiffstats
path: root/BaseTools/Source/Python/AutoGen/GenMake.py
diff options
context:
space:
mode:
authorJian J Wang <jian.j.wang@intel.com>2018-03-07 11:26:32 +0800
committerStar Zeng <star.zeng@intel.com>2018-03-08 12:37:28 +0800
commit8b13bca9b81490fc0e42df25d5feb82bbb47833e (patch)
tree170ce84b113329d4511a8aa581466733cf146030 /BaseTools/Source/Python/AutoGen/GenMake.py
parent3d1872b780cc6e028a554c7f7b5f6e04e98ab36b (diff)
downloadedk2-8b13bca9b81490fc0e42df25d5feb82bbb47833e.tar.gz
edk2-8b13bca9b81490fc0e42df25d5feb82bbb47833e.tar.bz2
edk2-8b13bca9b81490fc0e42df25d5feb82bbb47833e.zip
MdeModulePkg/Core: fix too many available pages between BS_Data
The root cause is an unnecessary check to Size parameter in function AdjustMemoryS(). It will cause one standalone free page (happen to have Guard page around) in the free memory list cannot be allocated, even if the requested memory size is less than a page. // // At least one more page needed for Guard page. // if (Size < (SizeRequested + EFI_PAGES_TO_SIZE (1))) { return 0; } The following code in the same function actually covers above check implicitly. So the fix is simply removing above check. Cc: Star Zeng <star.zeng@intel.com> Cc: Eric Dong <eric.dong@intel.com> Cc: Jiewen Yao <jiewen.yao@intel.com> Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Jian J Wang <jian.j.wang@intel.com> Reviewed-by: Jiewen Yao <jiewen.yao@intel.com>
Diffstat (limited to 'BaseTools/Source/Python/AutoGen/GenMake.py')
0 files changed, 0 insertions, 0 deletions