diff options
author | Star Zeng <star.zeng@intel.com> | 2016-04-11 11:00:47 +0800 |
---|---|---|
committer | Star Zeng <star.zeng@intel.com> | 2016-04-22 13:39:56 +0800 |
commit | 925f0d1ae144a0b57b70fe89a26d47660cf488c7 (patch) | |
tree | 1b7ee954fcef18c341651ac6122c64ce657c6ffb /MdeModulePkg/Core/Dxe/Mem/Imem.h | |
parent | 2bfac751a7229c5407b5e4571d95d3a07866ec3d (diff) | |
download | edk2-platforms-925f0d1ae144a0b57b70fe89a26d47660cf488c7.tar.xz |
MdeModulePkg DxeCore: Return memory type from internal free pool/pages
The following patch for MemoryAttributesTable will need the memory type.
And CoreUpdateProfile() can also use the memory type for check.
Cc: Jiewen Yao <jiewen.yao@intel.com>
Cc: Liming Gao <liming.gao@intel.com>
Cc: Feng Tian <feng.tian@intel.com>
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Star Zeng <star.zeng@intel.com>
Reviewed-by: Jiewen Yao <jiewen.yao@intel.com>
Diffstat (limited to 'MdeModulePkg/Core/Dxe/Mem/Imem.h')
-rw-r--r-- | MdeModulePkg/Core/Dxe/Mem/Imem.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/MdeModulePkg/Core/Dxe/Mem/Imem.h b/MdeModulePkg/Core/Dxe/Mem/Imem.h index 6f4065e3b8..fb53f95575 100644 --- a/MdeModulePkg/Core/Dxe/Mem/Imem.h +++ b/MdeModulePkg/Core/Dxe/Mem/Imem.h @@ -112,6 +112,7 @@ CoreAllocatePoolI ( Caller must have the memory lock held
@param Buffer The allocated pool entry to free
+ @param PoolType Pointer to pool type
@retval EFI_INVALID_PARAMETER Buffer not valid
@retval EFI_SUCCESS Buffer successfully freed.
@@ -119,7 +120,8 @@ CoreAllocatePoolI ( **/
EFI_STATUS
CoreFreePoolI (
- IN VOID *Buffer
+ IN VOID *Buffer,
+ OUT EFI_MEMORY_TYPE *PoolType OPTIONAL
);
|