From ff9331e6bd7acff790c34415ee7eec4070fe08b1 Mon Sep 17 00:00:00 2001 From: Star Zeng Date: Mon, 18 May 2015 01:27:25 +0000 Subject: [PATCH] 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 Reviewed-by: Liming Gao git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@17459 6f19259b-4bc3-4df7-8a09-765794883524 --- MdePkg/Include/Uefi/UefiSpec.h | 16 +++++++++++++--- 1 file 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.
@@ -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. -- 2.39.2