summaryrefslogtreecommitdiffstats
path: root/MdePkg
diff options
context:
space:
mode:
authorStar Zeng <star.zeng@intel.com>2015-05-18 01:27:25 +0000
committerlzeng14 <lzeng14@Edk2>2015-05-18 01:27:25 +0000
commitff9331e6bd7acff790c34415ee7eec4070fe08b1 (patch)
tree11a6c875c382461a4f2aa46c4863367b46398597 /MdePkg
parentb057be47f732b86496e2c1b997972d31953a1198 (diff)
downloadedk2-ff9331e6bd7acff790c34415ee7eec4070fe08b1.tar.gz
edk2-ff9331e6bd7acff790c34415ee7eec4070fe08b1.tar.bz2
edk2-ff9331e6bd7acff790c34415ee7eec4070fe08b1.zip
MdePkg UefiSpec.h: Update comments for OEM reserved memory type.
UEFI 2.5 Spec: MemoryType values in the range 0x70000000..0x7FFFFFFF are reserved for OEM use. 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@17459 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'MdePkg')
-rw-r--r--MdePkg/Include/Uefi/UefiSpec.h16
1 files changed, 13 insertions, 3 deletions
diff --git a/MdePkg/Include/Uefi/UefiSpec.h b/MdePkg/Include/Uefi/UefiSpec.h
index 4aef8719ed..2fb6ea00ab 100644
--- a/MdePkg/Include/Uefi/UefiSpec.h
+++ b/MdePkg/Include/Uefi/UefiSpec.h
@@ -1,8 +1,8 @@
/** @file
Include file that supports UEFI.
- This include file must contain things defined in the UEFI 2.4 specification.
- If a code construct is defined in the UEFI 2.4 specification it must be included
+ This include file must contain things defined in the UEFI 2.5 specification.
+ If a code construct is defined in the UEFI 2.5 specification it must be included
by this include file.
Copyright (c) 2006 - 2015, Intel Corporation. All rights reserved.<BR>
@@ -133,6 +133,11 @@ typedef struct {
@param[in] Type The type of allocation to perform.
@param[in] MemoryType The type of memory to allocate.
+ 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.
@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.
@@ -141,9 +146,9 @@ typedef struct {
@retval EFI_INVALID_PARAMETER 1) Type is not AllocateAnyPages or
AllocateMaxAddress or AllocateAddress.
2) MemoryType is in the range
+ EfiMaxMemoryType..0x6FFFFFFF.
3) Memory is NULL.
4) MemoryType was EfiPersistentMemory.
- EfiMaxMemoryType..0x7FFFFFFF.
@retval EFI_OUT_OF_RESOURCES The pages could not be allocated.
@retval EFI_NOT_FOUND The requested pages could not be found.
@@ -215,6 +220,11 @@ EFI_STATUS
Allocates pool memory.
@param[in] PoolType The type of pool to allocate.
+ 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.
@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.