PlatformSmbiosDxe: PlatformSmbiosDxe.c: fix EndingAddress
authorBigfootACA <bigfoot@classfun.cn>
星期四, 10 Feb 2022 10:22:10 +0000 (18:22 +0800)
committerBigfootACA <bigfoot@classfun.cn>
星期四, 10 Feb 2022 10:22:10 +0000 (18:22 +0800)
sdm845Pkg/Drivers/PlatformSmbiosDxe/PlatformSmbiosDxe.c

index c191fa1834ad83018580911b91cb581a12a32857..32c9fe9febfe9f3d54df98c4de5e5f5b0519e83f 100644 (file)
@@ -1091,7 +1091,7 @@ PlatformSmbiosDriverEntryPoint(
 \r
   while (fdt_get_memory(Fdt, (int)Node, (uint64_t*)&MemoryBase, (uint64_t*)&MemorySize)) {\r
     mMemArrMapInfoType19.StartingAddress = MemoryBase;\r
-    mMemArrMapInfoType19.EndingAddress = MemorySize;\r
+    mMemArrMapInfoType19.EndingAddress = MemoryBase + MemorySize;\r
     LogSmbiosData(\r
         (EFI_SMBIOS_TABLE_HEADER *)&mMemArrMapInfoType19,\r
         mMemArrMapInfoType19Strings, NULL);\r