mirror of
https://github.com/acidanthera/audk.git
synced 2025-07-25 14:44:28 +02:00
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>
This commit is contained in:
parent
60131098f3
commit
bb34cc8c38
@ -85,7 +85,7 @@ SmmInitializeMemoryServices (
|
|||||||
SmramRanges[CurrentSmramRangesIndex].PhysicalSize = SmramRanges[CurrentSmramRangesIndex].PhysicalSize - SmmCodeSize;
|
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
|
// Need add Free memory at first, to let gSmmMemoryMap record data
|
||||||
//
|
//
|
||||||
for (Index = 0; Index < SmramRangeCount; Index++) {
|
for (Index = 0; Index < SmramRangeCount; Index++) {
|
||||||
@ -100,6 +100,9 @@ SmmInitializeMemoryServices (
|
|||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//
|
||||||
|
// Add the allocated SMRAM regions
|
||||||
|
//
|
||||||
for (Index = 0; Index < SmramRangeCount; Index++) {
|
for (Index = 0; Index < SmramRangeCount; Index++) {
|
||||||
if ((SmramRanges[Index].RegionState & (EFI_ALLOCATED | EFI_NEEDS_TESTING | EFI_NEEDS_ECC_INITIALIZATION)) == 0) {
|
if ((SmramRanges[Index].RegionState & (EFI_ALLOCATED | EFI_NEEDS_TESTING | EFI_NEEDS_ECC_INITIALIZATION)) == 0) {
|
||||||
continue;
|
continue;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user