audk/MdeModulePkg/Library/PiSmmCoreMemoryAllocationLib
Star Zeng f3b6e048e2 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
2015-05-18 01:46:40 +00:00
..
MemoryAllocationLib.c MdeModulePkg PiSmmCoreMemoryAllocationLib: Get SMRAM ranges 2015-05-18 01:46:40 +00:00
PiSmmCoreMemoryAllocationLib.inf Use SmmMemLib to check communication buffer. 2015-02-02 14:42:22 +00:00
PiSmmCoreMemoryAllocationLib.uni MdeModulePkg: Convert non DOS format files to DOS format and remove unused module UNI files. 2014-09-03 08:39:12 +00:00
PiSmmCoreMemoryAllocationServices.h MdeModulePkg PiSmmCoreMemoryAllocationLib: Get SMRAM ranges 2015-05-18 01:46:40 +00:00