]> git.proxmox.com Git - mirror_edk2.git/commitdiff
MdePkg UefiSpec.h: Update comments for OEM reserved memory type.
authorStar Zeng <star.zeng@intel.com>
Mon, 18 May 2015 01:27:25 +0000 (01:27 +0000)
committerlzeng14 <lzeng14@Edk2>
Mon, 18 May 2015 01:27:25 +0000 (01:27 +0000)
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

MdePkg/Include/Uefi/UefiSpec.h

index 4aef8719ed30ef7e0ef1da81e14694436f2c0e9f..2fb6ea00aba6f886c03f1a732270461c2fcbe8c4 100644 (file)
@@ -1,8 +1,8 @@
 /** @file\r
   Include file that supports UEFI.\r
 \r
-  This include file must contain things defined in the UEFI 2.4 specification.\r
-  If a code construct is defined in the UEFI 2.4 specification it must be included\r
+  This include file must contain things defined in the UEFI 2.5 specification.\r
+  If a code construct is defined in the UEFI 2.5 specification it must be included\r
   by this include file.\r
 \r
 Copyright (c) 2006 - 2015, Intel Corporation. All rights reserved.<BR>\r
@@ -133,6 +133,11 @@ typedef struct {
 \r
   @param[in]       Type         The type of allocation to perform.\r
   @param[in]       MemoryType   The type of memory to allocate.\r
+                                MemoryType values in the range 0x70000000..0x7FFFFFFF\r
+                                are reserved for OEM use. MemoryType values in the range\r
+                                0x80000000..0xFFFFFFFF are reserved for use by UEFI OS loaders\r
+                                that are provided by operating system vendors. The only illegal\r
+                                memory type values are those in the range EfiMaxMemoryType..0x6FFFFFFF.\r
   @param[in]       Pages        The number of contiguous 4 KB pages to allocate.\r
   @param[in, out]  Memory       The pointer to a physical address. On input, the way in which the address is\r
                                 used depends on the value of Type.\r
@@ -141,9 +146,9 @@ typedef struct {
   @retval EFI_INVALID_PARAMETER 1) Type is not AllocateAnyPages or\r
                                 AllocateMaxAddress or AllocateAddress.\r
                                 2) MemoryType is in the range\r
+                                EfiMaxMemoryType..0x6FFFFFFF.\r
                                 3) Memory is NULL.\r
                                 4) MemoryType was EfiPersistentMemory.\r
-                                EfiMaxMemoryType..0x7FFFFFFF.\r
   @retval EFI_OUT_OF_RESOURCES  The pages could not be allocated.\r
   @retval EFI_NOT_FOUND         The requested pages could not be found.\r
 \r
@@ -215,6 +220,11 @@ EFI_STATUS
   Allocates pool memory.\r
 \r
   @param[in]   PoolType         The type of pool to allocate.\r
+                                MemoryType values in the range 0x70000000..0x7FFFFFFF\r
+                                are reserved for OEM use. MemoryType values in the range\r
+                                0x80000000..0xFFFFFFFF are reserved for use by UEFI OS loaders\r
+                                that are provided by operating system vendors. The only illegal\r
+                                memory type values are those in the range EfiMaxMemoryType..0x6FFFFFFF.\r
   @param[in]   Size             The number of bytes to allocate from the pool.\r
   @param[out]  Buffer           A pointer to a pointer to the allocated buffer if the call succeeds;\r
                                 undefined otherwise.\r