]> git.proxmox.com Git - mirror_edk2.git/blobdiff - UefiCpuPkg/PiSmmCpuDxeSmm/PiSmmCpuDxeSmm.c
UefiCpuPkg/PiSmmCpuDxeSmm: Introduce page table pool mechanism
[mirror_edk2.git] / UefiCpuPkg / PiSmmCpuDxeSmm / PiSmmCpuDxeSmm.c
index 37e3cfc449c846369dcbb107aeffc14546f31c9f..655175a2c6db5c51123bd5bec603a891ad106778 100644 (file)
@@ -1322,36 +1322,6 @@ ConfigSmmCodeAccessCheck (
   }\r
 }\r
 \r
-/**\r
-  This API provides a way to allocate memory for page table.\r
-\r
-  This API can be called more once to allocate memory for page tables.\r
-\r
-  Allocates the number of 4KB pages of type EfiRuntimeServicesData and returns a pointer to the\r
-  allocated buffer.  The buffer returned is aligned on a 4KB boundary.  If Pages is 0, then NULL\r
-  is returned.  If there is not enough memory remaining to satisfy the request, then NULL is\r
-  returned.\r
-\r
-  @param  Pages                 The number of 4 KB pages to allocate.\r
-\r
-  @return A pointer to the allocated buffer or NULL if allocation fails.\r
-\r
-**/\r
-VOID *\r
-AllocatePageTableMemory (\r
-  IN UINTN  Pages\r
-  )\r
-{\r
-  VOID  *Buffer;\r
-\r
-  Buffer = SmmCpuFeaturesAllocatePageTableMemory (Pages);\r
-  if (Buffer != NULL) {\r
-    return Buffer;\r
-  }\r
-\r
-  return AllocatePages (Pages);\r
-}\r
-\r
 /**\r
   Allocate pages for code.\r
 \r