diff options
author | Jian J Wang <jian.j.wang@intel.com> | 2018-06-13 11:05:44 +0800 |
---|---|---|
committer | Star Zeng <star.zeng@intel.com> | 2018-06-19 13:44:56 +0800 |
commit | 855abe0204cb932c8059a573a06a59ddc714ca49 (patch) | |
tree | 10e02e95d4e0a9c0ab78b7088f73ed616e98a4eb | |
parent | d106cf71eabaacff63c14626a4a87346b93074dd (diff) | |
download | edk2-855abe0204cb932c8059a573a06a59ddc714ca49.tar.gz edk2-855abe0204cb932c8059a573a06a59ddc714ca49.tar.bz2 edk2-855abe0204cb932c8059a573a06a59ddc714ca49.zip |
MdeModulePkg/Core: remove SMM check for Heap Guard feature detection
CpuDxe driver is updated to be able to access DXE page table in SMM mode,
which means Heap Guard can get correct memory paging attributes in what
environment. It's not necessary to exclude SMM from detecting Heap Guard
feature support.
Cc: Star Zeng <star.zeng@intel.com>
Cc: Eric Dong <eric.dong@intel.com>
Cc: Jiewen Yao <jiewen.yao@intel.com>
Cc: Ruiyu Ni <ruiyu.ni@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>
-rw-r--r-- | MdeModulePkg/Core/Dxe/Mem/HeapGuard.c | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/MdeModulePkg/Core/Dxe/Mem/HeapGuard.c b/MdeModulePkg/Core/Dxe/Mem/HeapGuard.c index 9d765c98f6..447c56bb11 100644 --- a/MdeModulePkg/Core/Dxe/Mem/HeapGuard.c +++ b/MdeModulePkg/Core/Dxe/Mem/HeapGuard.c @@ -667,21 +667,11 @@ IsMemoryTypeToGuard ( {
UINT64 TestBit;
UINT64 ConfigBit;
- BOOLEAN InSmm;
if (AllocateType == AllocateAddress) {
return FALSE;
}
- InSmm = FALSE;
- if (gSmmBase2 != NULL) {
- gSmmBase2->InSmm (gSmmBase2, &InSmm);
- }
-
- if (InSmm) {
- return FALSE;
- }
-
if ((PcdGet8 (PcdHeapGuardPropertyMask) & PageOrPool) == 0) {
return FALSE;
}
|