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>
SmramRanges[CurrentSmramRangesIndex].PhysicalSize = SmramRanges[CurrentSmramRangesIndex].PhysicalSize - SmmCodeSize;\r
}\r
//\r
- // Initialize free SMRAM regions\r
+ // Add Free SMRAM regions\r
// Need add Free memory at first, to let gSmmMemoryMap record data\r
//\r
for (Index = 0; Index < SmramRangeCount; Index++) {\r
);\r
}\r
\r
+ //\r
+ // Add the allocated SMRAM regions\r
+ //\r
for (Index = 0; Index < SmramRangeCount; Index++) {\r
if ((SmramRanges[Index].RegionState & (EFI_ALLOCATED | EFI_NEEDS_TESTING | EFI_NEEDS_ECC_INITIALIZATION)) == 0) {\r
continue;\r