diff options
author | Star Zeng <star.zeng@intel.com> | 2016-01-29 16:29:38 +0800 |
---|---|---|
committer | Star Zeng <star.zeng@intel.com> | 2016-02-15 18:12:03 +0800 |
commit | 379f1cfea738293c710f7a18590690d1e36ade2a (patch) | |
tree | 17d65fd64189242b5823ae6be41e8b90422ff860 | |
parent | 09159a29d1b9a35745a033fd6434df264a751d0e (diff) | |
download | edk2-platforms-379f1cfea738293c710f7a18590690d1e36ade2a.tar.xz |
MdePkg: Minor comments update to AllocatePages() and AllocatePool()
Follow UEFI 2.6 spec to minor update the comments of
AllocatePages() and AllocatePool().
Cc: Liming Gao <liming.gao@intel.com>
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Star Zeng <star.zeng@intel.com>
Reviewed-by: Liming Gao <liming.gao@intel.com>
-rw-r--r-- | MdePkg/Include/Uefi/UefiSpec.h | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/MdePkg/Include/Uefi/UefiSpec.h b/MdePkg/Include/Uefi/UefiSpec.h index c864084e70..e8feed120d 100644 --- a/MdePkg/Include/Uefi/UefiSpec.h +++ b/MdePkg/Include/Uefi/UefiSpec.h @@ -136,8 +136,7 @@ typedef struct { MemoryType values in the range 0x70000000..0x7FFFFFFF
are reserved for OEM use. MemoryType values in the range
0x80000000..0xFFFFFFFF are reserved for use by UEFI OS loaders
- that are provided by operating system vendors. The only illegal
- memory type values are those in the range EfiMaxMemoryType..0x6FFFFFFF.
+ that are provided by operating system vendors.
@param[in] Pages The number of contiguous 4 KB pages to allocate.
@param[in, out] Memory The pointer to a physical address. On input, the way in which the address is
used depends on the value of Type.
@@ -148,7 +147,7 @@ typedef struct { 2) MemoryType is in the range
EfiMaxMemoryType..0x6FFFFFFF.
3) Memory is NULL.
- 4) MemoryType was EfiPersistentMemory.
+ 4) MemoryType is EfiPersistentMemory.
@retval EFI_OUT_OF_RESOURCES The pages could not be allocated.
@retval EFI_NOT_FOUND The requested pages could not be found.
@@ -223,16 +222,16 @@ EFI_STATUS MemoryType values in the range 0x70000000..0x7FFFFFFF
are reserved for OEM use. MemoryType values in the range
0x80000000..0xFFFFFFFF are reserved for use by UEFI OS loaders
- that are provided by operating system vendors. The only illegal
- memory type values are those in the range EfiMaxMemoryType..0x6FFFFFFF.
+ that are provided by operating system vendors.
@param[in] Size The number of bytes to allocate from the pool.
@param[out] Buffer A pointer to a pointer to the allocated buffer if the call succeeds;
undefined otherwise.
@retval EFI_SUCCESS The requested number of bytes was allocated.
@retval EFI_OUT_OF_RESOURCES The pool requested could not be allocated.
- @retval EFI_INVALID_PARAMETER PoolType was invalid or Buffer is NULL.
- PoolType was EfiPersistentMemory.
+ @retval EFI_INVALID_PARAMETER Buffer is NULL.
+ PoolType is in the range EfiMaxMemoryType..0x6FFFFFFF.
+ PoolType is EfiPersistentMemory.
**/
typedef
|