diff options
author | Elvin Li <elvin.li@intel.com> | 2015-04-09 07:50:34 +0000 |
---|---|---|
committer | li-elvin <li-elvin@Edk2> | 2015-04-09 07:50:34 +0000 |
commit | 800765aa19a8059a001652d3d190e594ed651694 (patch) | |
tree | bfb46c17baddfbcc010583720f415691824d2813 /IntelFrameworkModulePkg/Csm/LegacyBiosDxe/LegacyBootSupport.c | |
parent | 718abab1121bfae91b9d4daa1d9fa17879d9ed32 (diff) | |
download | edk2-platforms-800765aa19a8059a001652d3d190e594ed651694.tar.xz |
IntelFrameworkModulePkg: add comments to clarify runtime memory usage for legacy OS.
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Elvin Li <elvin.li@intel.com>
Reviewed-by: Star Zeng <star.zeng@intel.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@17135 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'IntelFrameworkModulePkg/Csm/LegacyBiosDxe/LegacyBootSupport.c')
-rw-r--r-- | IntelFrameworkModulePkg/Csm/LegacyBiosDxe/LegacyBootSupport.c | 6 |
1 files changed, 6 insertions, 0 deletions
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;
|