Follow UEFI 2.6 spec to minor update the comments of AllocatePool().

Cc: Liming Gao <liming....@intel.com>
Cc: Feng Tian <feng.t...@intel.com>
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Star Zeng <star.z...@intel.com>
---
 MdeModulePkg/Core/Dxe/Mem/Imem.h | 4 ++--
 MdeModulePkg/Core/Dxe/Mem/Pool.c | 7 +++++--
 2 files changed, 7 insertions(+), 4 deletions(-)

diff --git a/MdeModulePkg/Core/Dxe/Mem/Imem.h b/MdeModulePkg/Core/Dxe/Mem/Imem.h
index a76ae2f..6f4065e 100644
--- a/MdeModulePkg/Core/Dxe/Mem/Imem.h
+++ b/MdeModulePkg/Core/Dxe/Mem/Imem.h
@@ -1,7 +1,7 @@
 /** @file
   Data structure and functions to allocate and free memory space.
 
-Copyright (c) 2006 - 2015, Intel Corporation. All rights reserved.<BR>
+Copyright (c) 2006 - 2016, 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
@@ -19,7 +19,7 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER 
EXPRESS OR IMPLIED.
 // +---------------------------------------------------+
 // | 0..(EfiMaxMemoryType - 1)    - Normal memory type |
 // +---------------------------------------------------+
-// | EfiMaxMemoryType..0x6FFFFFFF - Ilegal             |
+// | EfiMaxMemoryType..0x6FFFFFFF - Invalid            |
 // +---------------------------------------------------+
 // | 0x70000000..0x7FFFFFFF       - OEM reserved       |
 // +---------------------------------------------------+
diff --git a/MdeModulePkg/Core/Dxe/Mem/Pool.c b/MdeModulePkg/Core/Dxe/Mem/Pool.c
index ad9a85f..a2fd139 100644
--- a/MdeModulePkg/Core/Dxe/Mem/Pool.c
+++ b/MdeModulePkg/Core/Dxe/Mem/Pool.c
@@ -197,7 +197,8 @@ LookupPoolHead (
   @param  Buffer                 The address to return a pointer to the 
allocated
                                  pool
 
-  @retval EFI_INVALID_PARAMETER  PoolType not valid or Buffer is NULL. 
+  @retval EFI_INVALID_PARAMETER  Buffer is NULL.
+                                 PoolType is in the range 
EfiMaxMemoryType..0x6FFFFFFF.
                                  PoolType was EfiPersistentMemory.
   @retval EFI_OUT_OF_RESOURCES   Size exceeds max pool size or allocation 
failed.
   @retval EFI_SUCCESS            Pool successfully allocated.
@@ -256,7 +257,9 @@ CoreInternalAllocatePool (
   @param  Buffer                 The address to return a pointer to the 
allocated
                                  pool
 
-  @retval EFI_INVALID_PARAMETER  PoolType not valid or Buffer is NULL. 
+  @retval EFI_INVALID_PARAMETER  Buffer is NULL.
+                                 PoolType is in the range 
EfiMaxMemoryType..0x6FFFFFFF.
+                                 PoolType was EfiPersistentMemory.
   @retval EFI_OUT_OF_RESOURCES   Size exceeds max pool size or allocation 
failed.
   @retval EFI_SUCCESS            Pool successfully allocated.
 
-- 
2.7.0.windows.1

_______________________________________________
edk2-devel mailing list
edk2-devel@lists.01.org
https://lists.01.org/mailman/listinfo/edk2-devel

Reply via email to