]> git.proxmox.com Git - mirror_edk2.git/commitdiff
MdeModulePkg: Update implementation of PeiAllocatePages() to allow EfiReservedMemoryType.
authorStar Zeng <star.zeng@intel.com>
Mon, 11 May 2015 03:12:21 +0000 (03:12 +0000)
committerlzeng14 <lzeng14@Edk2>
Mon, 11 May 2015 03:12:21 +0000 (03:12 +0000)
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Star Zeng <star.zeng@intel.com>
Reviewed-by: Liming Gao <liming.gao@intel.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@17394 6f19259b-4bc3-4df7-8a09-765794883524

MdeModulePkg/Core/Pei/Memory/MemoryServices.c

index 1213702c680580e9968dedaee49821bb4db9bca2..36bdc73ebdc59153a2b911c67e3940ca196df634 100644 (file)
@@ -1,7 +1,7 @@
 /** @file\r
   EFI PEI Core memory services\r
   \r
-Copyright (c) 2006 - 2014, Intel Corporation. All rights reserved.<BR>\r
+Copyright (c) 2006 - 2015, Intel Corporation. All rights reserved.<BR>\r
 This program and the accompanying materials                          \r
 are licensed and made available under the terms and conditions of the BSD License         \r
 which accompanies this distribution.  The full text of the license may be found at        \r
@@ -123,7 +123,7 @@ PeiInstallPeiMemory (
   @retval EFI_OUT_OF_RESOURCES  The pages could not be allocated.\r
   @retval EFI_INVALID_PARAMETER Type is not equal to EfiLoaderCode, EfiLoaderData, EfiRuntimeServicesCode, \r
                                 EfiRuntimeServicesData, EfiBootServicesCode, EfiBootServicesData,\r
-                                EfiACPIReclaimMemory, or EfiACPIMemoryNVS.\r
+                                EfiACPIReclaimMemory, EfiReservedMemoryType, or EfiACPIMemoryNVS.\r
 \r
 **/\r
 EFI_STATUS\r
@@ -148,6 +148,7 @@ PeiAllocatePages (
       (MemoryType != EfiBootServicesCode) &&\r
       (MemoryType != EfiBootServicesData) &&\r
       (MemoryType != EfiACPIReclaimMemory) &&\r
+      (MemoryType != EfiReservedMemoryType) &&\r
       (MemoryType != EfiACPIMemoryNVS)) {\r
     return EFI_INVALID_PARAMETER;\r
   }\r