diff options
author | Liming Gao <liming.gao@intel.com> | 2015-04-29 01:37:05 +0000 |
---|---|---|
committer | lgao4 <lgao4@Edk2> | 2015-04-29 01:37:05 +0000 |
commit | a671a0120a2fd8e8cb402741cf5e8652e27f38b5 (patch) | |
tree | 32bd1f8f94ce0bacdc05e5cf54c77a313886e121 /MdeModulePkg/Core/Dxe/Mem/Pool.c | |
parent | 6c98edac3035e18e8e0a667da4b0a3e8512af49e (diff) | |
download | edk2-platforms-a671a0120a2fd8e8cb402741cf5e8652e27f38b5.tar.xz |
MdeModulePkg: Add support for UEFI2.5 and PI1.4 PersistentMemory feature
Update DxeCore to collect PersistentMemory resource and report them
in EFI memory map.
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Liming Gao <liming.gao@intel.com>
Reviewed-by: Star Zeng <star.zeng@intel.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@17242 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'MdeModulePkg/Core/Dxe/Mem/Pool.c')
-rw-r--r-- | MdeModulePkg/Core/Dxe/Mem/Pool.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/MdeModulePkg/Core/Dxe/Mem/Pool.c b/MdeModulePkg/Core/Dxe/Mem/Pool.c index e43bac834e..ac717fb65f 100644 --- a/MdeModulePkg/Core/Dxe/Mem/Pool.c +++ b/MdeModulePkg/Core/Dxe/Mem/Pool.c @@ -1,7 +1,7 @@ /** @file
UEFI Memory pool management functions.
-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
@@ -197,6 +197,7 @@ LookupPoolHead ( pool
@retval EFI_INVALID_PARAMETER PoolType not valid or Buffer is NULL.
+ PoolType was EfiPersistentMemory.
@retval EFI_OUT_OF_RESOURCES Size exceeds max pool size or allocation failed.
@retval EFI_SUCCESS Pool successfully allocated.
@@ -215,7 +216,7 @@ CoreInternalAllocatePool ( // If it's not a valid type, fail it
//
if ((PoolType >= EfiMaxMemoryType && PoolType <= 0x7fffffff) ||
- PoolType == EfiConventionalMemory) {
+ (PoolType == EfiConventionalMemory) || (PoolType == EfiPersistentMemory)) {
return EFI_INVALID_PARAMETER;
}
|