mirror of https://github.com/acidanthera/audk.git
Fix crash in GetMemoryMap() when memory type 0x80000000-0xFFFFFFFF was allocated by OS loader
Signed-off-by: niruiyu Reviewed-by: lgao4 Reviewed-by: hhtian git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@11774 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
parent
1b65880229
commit
10fe0d814a
|
@ -1464,8 +1464,10 @@ CoreGetMemoryMap (
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
MemoryMap->Attribute = Entry->Attribute;
|
MemoryMap->Attribute = Entry->Attribute;
|
||||||
if (mMemoryTypeStatistics[MemoryMap->Type].Runtime) {
|
if (MemoryMap->Type < EfiMaxMemoryType) {
|
||||||
MemoryMap->Attribute |= EFI_MEMORY_RUNTIME;
|
if (mMemoryTypeStatistics[MemoryMap->Type].Runtime) {
|
||||||
|
MemoryMap->Attribute |= EFI_MEMORY_RUNTIME;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
//
|
//
|
||||||
|
|
Loading…
Reference in New Issue