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
This commit is contained in:
Elvin Li 2015-04-09 07:50:34 +00:00 committed by li-elvin
parent 718abab112
commit 800765aa19
1 changed files with 6 additions and 0 deletions

View File

@ -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;