]> git.proxmox.com Git - mirror_edk2.git/commit
MdeModulePkg PiSmmCoreMemoryAllocationLib: Get SMRAM ranges
authorStar Zeng <star.zeng@intel.com>
Mon, 18 May 2015 01:46:40 +0000 (01:46 +0000)
committerlzeng14 <lzeng14@Edk2>
Mon, 18 May 2015 01:46:40 +0000 (01:46 +0000)
commitf3b6e048e2454c4692bcd66c7592aefde14bcfa4
tree60a8f47e9f84e7604efa060fe33aec95972abc73
parentdb9b00f1d58516fec77df359e99ee60ed3da0278
MdeModulePkg PiSmmCoreMemoryAllocationLib: Get SMRAM ranges

 from FullSmramRanges and FullSmramRangeCount in SmmCorePrivate by Constructor.

It can avoid potential first call to FreePool() -> BufferInSmram() ->
if (mSmramRanges == NULL) { GetSmramRanges();} ->
gBS->LocateProtocol() at boottime with >= TPL_NOTIFY or
after ReadyToLock or at OS runtime.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Star Zeng <star.zeng@intel.com>
Reviewed-by: Jiewen Yao <jiewen.yao@intel.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@17463 6f19259b-4bc3-4df7-8a09-765794883524
MdeModulePkg/Library/PiSmmCoreMemoryAllocationLib/MemoryAllocationLib.c
MdeModulePkg/Library/PiSmmCoreMemoryAllocationLib/PiSmmCoreMemoryAllocationServices.h