From ab6fb25a1f33f39b30ee10af03c50014221c0661 Mon Sep 17 00:00:00 2001 From: Star Zeng Date: Mon, 11 May 2015 03:12:21 +0000 Subject: [PATCH] MdeModulePkg: Update implementation of PeiAllocatePages() to allow EfiReservedMemoryType. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Star Zeng Reviewed-by: Liming Gao 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 | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/MdeModulePkg/Core/Pei/Memory/MemoryServices.c b/MdeModulePkg/Core/Pei/Memory/MemoryServices.c index 1213702c68..36bdc73ebd 100644 --- a/MdeModulePkg/Core/Pei/Memory/MemoryServices.c +++ b/MdeModulePkg/Core/Pei/Memory/MemoryServices.c @@ -1,7 +1,7 @@ /** @file EFI PEI Core memory services -Copyright (c) 2006 - 2014, Intel Corporation. All rights reserved.
+Copyright (c) 2006 - 2015, Intel Corporation. All rights reserved.
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; } -- 2.39.2