summaryrefslogtreecommitdiffstats
path: root/MdeModulePkg/Core/Dxe
diff options
context:
space:
mode:
authorJian J Wang <jian.j.wang@intel.com>2018-06-13 11:05:44 +0800
committerStar Zeng <star.zeng@intel.com>2018-07-27 19:27:40 +0800
commit5636d21767076ff95bf43b237ac13888a1f8a439 (patch)
tree2b3062220568edbf1404b9749530b5a974888933 /MdeModulePkg/Core/Dxe
parentb9b0b8df804cb2d84ca922bdcb423735c0d04545 (diff)
downloadedk2-5636d21767076ff95bf43b237ac13888a1f8a439.tar.gz
edk2-5636d21767076ff95bf43b237ac13888a1f8a439.tar.bz2
edk2-5636d21767076ff95bf43b237ac13888a1f8a439.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> (cherry picked from commit 855abe0204cb932c8059a573a06a59ddc714ca49)
Diffstat (limited to 'MdeModulePkg/Core/Dxe')
-rw-r--r--MdeModulePkg/Core/Dxe/Mem/HeapGuard.c10
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;
}