MdeModulePkg DxeCore: Add memory more reliable support.
Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Star Zeng <star.zeng@intel.com> Reviewed-by: Liming Gao <liming.gao@intel.com> git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@17400 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
@@ -416,7 +416,11 @@ PromoteMemoryResource (
|
||||
//
|
||||
// Update the GCD map
|
||||
//
|
||||
Entry->GcdMemoryType = EfiGcdMemoryTypeSystemMemory;
|
||||
if ((Entry->Capabilities & EFI_MEMORY_MORE_RELIABLE) == EFI_MEMORY_MORE_RELIABLE) {
|
||||
Entry->GcdMemoryType = EfiGcdMemoryTypeMoreReliable;
|
||||
} else {
|
||||
Entry->GcdMemoryType = EfiGcdMemoryTypeSystemMemory;
|
||||
}
|
||||
Entry->Capabilities |= EFI_MEMORY_TESTED;
|
||||
Entry->ImageHandle = gDxeCoreImageHandle;
|
||||
Entry->DeviceHandle = NULL;
|
||||
|
Reference in New Issue
Block a user