From 800765aa19a8059a001652d3d190e594ed651694 Mon Sep 17 00:00:00 2001 From: Elvin Li Date: Thu, 9 Apr 2015 07:50:34 +0000 Subject: [PATCH] IntelFrameworkModulePkg: add comments to clarify runtime memory usage for legacy OS. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Elvin Li Reviewed-by: Star Zeng git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@17135 6f19259b-4bc3-4df7-8a09-765794883524 --- .../Csm/LegacyBiosDxe/LegacyBootSupport.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/IntelFrameworkModulePkg/Csm/LegacyBiosDxe/LegacyBootSupport.c b/IntelFrameworkModulePkg/Csm/LegacyBiosDxe/LegacyBootSupport.c index 6c2688b4a4..5575d2ec8e 100644 --- a/IntelFrameworkModulePkg/Csm/LegacyBiosDxe/LegacyBootSupport.c +++ b/IntelFrameworkModulePkg/Csm/LegacyBiosDxe/LegacyBootSupport.c @@ -1613,6 +1613,12 @@ EfiMemoryTypeToE820Type ( case EfiBootServicesCode: case EfiBootServicesData: case EfiConventionalMemory: + // + // The memory of EfiRuntimeServicesCode and EfiRuntimeServicesData are + // usable memory for legacy OS. + // In ACPI specification, EfiRuntimeServiceCode and EfiRuntimeServiceData + // should be mapped to AddressRangeReserved. This statement is for UEFI OS, not for legacy OS. + // case EfiRuntimeServicesCode: case EfiRuntimeServicesData: return EfiAcpiAddressRangeMemory; -- 2.39.2