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>
This commit is contained in:
@@ -1249,22 +1249,6 @@ SetShadowStack (
|
||||
IN UINT64 Length
|
||||
);
|
||||
|
||||
/**
|
||||
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.
|
||||
|
||||
|
Reference in New Issue
Block a user