summaryrefslogtreecommitdiffstats
path: root/UefiCpuPkg/PiSmmCpuDxeSmm/PiSmmCpuDxeSmm.h
diff options
context:
space:
mode:
authorDun Tan <dun.tan@intel.com>2023-04-07 13:23:01 +0800
committerRay Ni <ray.ni@intel.com>2023-06-30 11:07:40 +0530
commitf5c987fcac567b1f84a418826f30d8ef2b46860e (patch)
tree39740f8eb5b6678c84b2d683ba64660d16f89ab0 /UefiCpuPkg/PiSmmCpuDxeSmm/PiSmmCpuDxeSmm.h
parent4ceefd6dd1334e815d9e8393b727cecfaf441a1f (diff)
downloadedk2-f5c987fcac567b1f84a418826f30d8ef2b46860e.tar.gz
edk2-f5c987fcac567b1f84a418826f30d8ef2b46860e.tar.bz2
edk2-f5c987fcac567b1f84a418826f30d8ef2b46860e.zip
UefiCpuPkg/PiSmmCpuDxeSmm: Remove unnecessary function
Remove unnecessary function SetNotPresentPage(). We can directly use ConvertMemoryPageAttributes to set a range to non-present. Signed-off-by: Dun Tan <dun.tan@intel.com> Cc: Eric Dong <eric.dong@intel.com> Reviewed-by: Ray Ni <ray.ni@intel.com> Cc: Rahul Kumar <rahul1.kumar@intel.com> Cc: Gerd Hoffmann <kraxel@redhat.com>
Diffstat (limited to 'UefiCpuPkg/PiSmmCpuDxeSmm/PiSmmCpuDxeSmm.h')
-rw-r--r--UefiCpuPkg/PiSmmCpuDxeSmm/PiSmmCpuDxeSmm.h16
1 files changed, 0 insertions, 16 deletions
diff --git a/UefiCpuPkg/PiSmmCpuDxeSmm/PiSmmCpuDxeSmm.h b/UefiCpuPkg/PiSmmCpuDxeSmm/PiSmmCpuDxeSmm.h
index fe8c71aef1..8020e36df3 100644
--- a/UefiCpuPkg/PiSmmCpuDxeSmm/PiSmmCpuDxeSmm.h
+++ b/UefiCpuPkg/PiSmmCpuDxeSmm/PiSmmCpuDxeSmm.h
@@ -1250,22 +1250,6 @@ SetShadowStack (
);
/**
- Set not present memory.
-
- @param[in] Cr3 The page table base address.
- @param[in] BaseAddress The physical address that is the start address of a memory region.
- @param[in] Length The size in bytes of the memory region.
-
- @retval EFI_SUCCESS The not present memory is set.
-**/
-EFI_STATUS
-SetNotPresentPage (
- IN UINTN Cr3,
- IN EFI_PHYSICAL_ADDRESS BaseAddress,
- IN UINT64 Length
- );
-
-/**
Initialize the shadow stack related data structure.
@param CpuIndex The index of CPU.