diff options
author | Liming Gao <liming.gao@intel.com> | 2016-12-01 14:30:18 +0800 |
---|---|---|
committer | Liming Gao <liming.gao@intel.com> | 2016-12-05 15:14:34 +0800 |
commit | bb34cc8c389a6c301b70984879eaa846fb12c9fe (patch) | |
tree | 7d21d0098d165114254e1ba5e90f89749cd657e4 | |
parent | 60131098f302d9e449e95c53dec328aaf828076b (diff) | |
download | edk2-platforms-bb34cc8c389a6c301b70984879eaa846fb12c9fe.tar.xz |
MdeModulePkg PiSmmCore: Update comments in InitializeMemoryServices
Add the comments to describe Free and Allocated SMRAM are added separately.
Cc: Star Zeng <star.zeng@intel.com>
Cc: Jiewen Yao <jiewen.yao@intel.com>
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Liming Gao <liming.gao@intel.com>
Reviewed-by: Jiewen Yao <jiewen.yao@intel.com>
-rw-r--r-- | MdeModulePkg/Core/PiSmmCore/Pool.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/MdeModulePkg/Core/PiSmmCore/Pool.c b/MdeModulePkg/Core/PiSmmCore/Pool.c index dcfd13e575..aae6a6e217 100644 --- a/MdeModulePkg/Core/PiSmmCore/Pool.c +++ b/MdeModulePkg/Core/PiSmmCore/Pool.c @@ -85,7 +85,7 @@ SmmInitializeMemoryServices ( SmramRanges[CurrentSmramRangesIndex].PhysicalSize = SmramRanges[CurrentSmramRangesIndex].PhysicalSize - SmmCodeSize;
}
//
- // Initialize free SMRAM regions
+ // Add Free SMRAM regions
// Need add Free memory at first, to let gSmmMemoryMap record data
//
for (Index = 0; Index < SmramRangeCount; Index++) {
@@ -100,6 +100,9 @@ SmmInitializeMemoryServices ( );
}
+ //
+ // Add the allocated SMRAM regions
+ //
for (Index = 0; Index < SmramRangeCount; Index++) {
if ((SmramRanges[Index].RegionState & (EFI_ALLOCATED | EFI_NEEDS_TESTING | EFI_NEEDS_ECC_INITIALIZATION)) == 0) {
continue;
|