summaryrefslogtreecommitdiffstats
path: root/BaseTools/Source/Python/build/build.py
diff options
context:
space:
mode:
authorJian J Wang <jian.j.wang@intel.com>2017-12-11 09:32:27 +0800
committerStar Zeng <star.zeng@intel.com>2017-12-13 11:42:57 +0800
commit38d870fc4e9b5a1896c98d12947713fb7b4b9ac4 (patch)
tree1f18804827a12a1d3f1d7d7bb92803fe12323113 /BaseTools/Source/Python/build/build.py
parent6cf0a677a992a86b117e0b9ff3cff62077a29903 (diff)
downloadedk2-38d870fc4e9b5a1896c98d12947713fb7b4b9ac4.tar.gz
edk2-38d870fc4e9b5a1896c98d12947713fb7b4b9ac4.tar.bz2
edk2-38d870fc4e9b5a1896c98d12947713fb7b4b9ac4.zip
MdeModulePkg/PiSmmCore: Fix issues in Heap Guard
One issue is that macros defined in HeapGuard.h GUARD_HEAP_TYPE_PAGE GUARD_HEAP_TYPE_POOL doesn't match the definition of PCD PcdHeapGuardPropertyMask in MdeModulePkg.dec. This patch fixed it by exchanging the BIT0 and BIT1 of them. Another is that method AdjustMemoryF() will return a bigger NumberOfPages than the value passed in. This is caused by counting twice of a shared Guard page which can be used for both head and tail Guard of the memory before it and after it. This happens only when partially freeing just one page in the middle of a bunch of allocated pages. The freed page should be turned into a new Guard page. Cc: Jie Lin <jie.lin@intel.com> Cc: Star Zeng <star.zeng@intel.com> Cc: Eric Dong <eric.dong@intel.com> Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Jian J Wang <jian.j.wang@intel.com> Reviewed-by: Star Zeng <star.zeng@intel.com>
Diffstat (limited to 'BaseTools/Source/Python/build/build.py')
0 files changed, 0 insertions, 0 deletions