diff options
author | Star Zeng <star.zeng@intel.com> | 2015-05-18 01:46:40 +0000 |
---|---|---|
committer | lzeng14 <lzeng14@Edk2> | 2015-05-18 01:46:40 +0000 |
commit | f3b6e048e2454c4692bcd66c7592aefde14bcfa4 (patch) | |
tree | 60a8f47e9f84e7604efa060fe33aec95972abc73 /SecurityPkg | |
parent | db9b00f1d58516fec77df359e99ee60ed3da0278 (diff) | |
download | edk2-platforms-f3b6e048e2454c4692bcd66c7592aefde14bcfa4.tar.xz |
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
Diffstat (limited to 'SecurityPkg')
0 files changed, 0 insertions, 0 deletions