From: BigfootACA Date: 星期四, 10 Feb 2022 10:22:10 +0000 (+0800) Subject: PlatformSmbiosDxe: PlatformSmbiosDxe.c: fix EndingAddress X-Git-Tag: v2.0rc1~17 X-Git-Url: https://git.renegade-project.org/?a=commitdiff_plain;h=7c426b947c710c12dec6ab3710ed2c2cae16f8dc;p=edk2-sdm845.git PlatformSmbiosDxe: PlatformSmbiosDxe.c: fix EndingAddress --- diff --git a/sdm845Pkg/Drivers/PlatformSmbiosDxe/PlatformSmbiosDxe.c b/sdm845Pkg/Drivers/PlatformSmbiosDxe/PlatformSmbiosDxe.c index c191fa1..32c9fe9 100644 --- a/sdm845Pkg/Drivers/PlatformSmbiosDxe/PlatformSmbiosDxe.c +++ b/sdm845Pkg/Drivers/PlatformSmbiosDxe/PlatformSmbiosDxe.c @@ -1091,7 +1091,7 @@ PlatformSmbiosDriverEntryPoint( while (fdt_get_memory(Fdt, (int)Node, (uint64_t*)&MemoryBase, (uint64_t*)&MemorySize)) { mMemArrMapInfoType19.StartingAddress = MemoryBase; - mMemArrMapInfoType19.EndingAddress = MemorySize; + mMemArrMapInfoType19.EndingAddress = MemoryBase + MemorySize; LogSmbiosData( (EFI_SMBIOS_TABLE_HEADER *)&mMemArrMapInfoType19, mMemArrMapInfoType19Strings, NULL);