mirror of https://github.com/acidanthera/audk.git
MdeModulePkg: Update implementation of PeiAllocatePages() to allow EfiReservedMemoryType.
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
This commit is contained in:
parent
b7113eb0db
commit
ab6fb25a1f
|
@ -1,7 +1,7 @@
|
|||
/** @file
|
||||
EFI PEI Core memory services
|
||||
|
||||
Copyright (c) 2006 - 2014, Intel Corporation. All rights reserved.<BR>
|
||||
Copyright (c) 2006 - 2015, Intel Corporation. All rights reserved.<BR>
|
||||
This program and the accompanying materials
|
||||
are licensed and made available under the terms and conditions of the BSD License
|
||||
which accompanies this distribution. The full text of the license may be found at
|
||||
|
@ -123,7 +123,7 @@ PeiInstallPeiMemory (
|
|||
@retval EFI_OUT_OF_RESOURCES The pages could not be allocated.
|
||||
@retval EFI_INVALID_PARAMETER Type is not equal to EfiLoaderCode, EfiLoaderData, EfiRuntimeServicesCode,
|
||||
EfiRuntimeServicesData, EfiBootServicesCode, EfiBootServicesData,
|
||||
EfiACPIReclaimMemory, or EfiACPIMemoryNVS.
|
||||
EfiACPIReclaimMemory, EfiReservedMemoryType, or EfiACPIMemoryNVS.
|
||||
|
||||
**/
|
||||
EFI_STATUS
|
||||
|
@ -148,6 +148,7 @@ PeiAllocatePages (
|
|||
(MemoryType != EfiBootServicesCode) &&
|
||||
(MemoryType != EfiBootServicesData) &&
|
||||
(MemoryType != EfiACPIReclaimMemory) &&
|
||||
(MemoryType != EfiReservedMemoryType) &&
|
||||
(MemoryType != EfiACPIMemoryNVS)) {
|
||||
return EFI_INVALID_PARAMETER;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue