]> git.proxmox.com Git - mirror_edk2.git/commitdiff
MdeModulePkg PiSmmCore: Update comments in InitializeMemoryServices
authorLiming Gao <liming.gao@intel.com>
Thu, 1 Dec 2016 06:30:18 +0000 (14:30 +0800)
committerLiming Gao <liming.gao@intel.com>
Mon, 5 Dec 2016 07:14:34 +0000 (15:14 +0800)
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>
MdeModulePkg/Core/PiSmmCore/Pool.c

index dcfd13e57536ceb411708749a867fcfbe0839881..aae6a6e2173088a7c055f485a7ae598d7b8024f2 100644 (file)
@@ -85,7 +85,7 @@ SmmInitializeMemoryServices (
     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
@@ -100,6 +100,9 @@ SmmInitializeMemoryServices (
       );\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