From 27b044605cd5f6b33a3d231576003850b3fe305b Mon Sep 17 00:00:00 2001 From: Rebecca Cran Date: Wed, 15 May 2024 09:09:03 -0600 Subject: ArmPkg: Set BIOS Segment to 0 in SMBIOS Type 0 table According to the SMBIOS specification, on UEFI systems the BIOS Segment field in the Type 0 table isn't relevant and should be set to 0. Signed-off-by: Rebecca Cran --- ArmPkg/Universal/Smbios/SmbiosMiscDxe/SmbiosMiscDxe.inf | 1 - ArmPkg/Universal/Smbios/SmbiosMiscDxe/Type00/MiscBiosVendorFunction.c | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) (limited to 'ArmPkg') diff --git a/ArmPkg/Universal/Smbios/SmbiosMiscDxe/SmbiosMiscDxe.inf b/ArmPkg/Universal/Smbios/SmbiosMiscDxe/SmbiosMiscDxe.inf index 60d8fe31c2..e8f1011fa1 100644 --- a/ArmPkg/Universal/Smbios/SmbiosMiscDxe/SmbiosMiscDxe.inf +++ b/ArmPkg/Universal/Smbios/SmbiosMiscDxe/SmbiosMiscDxe.inf @@ -78,7 +78,6 @@ gArmTokenSpaceGuid.PcdBaseBoardManufacturer gArmTokenSpaceGuid.PcdBaseBoardProductName gArmTokenSpaceGuid.PcdBaseBoardVersion - gArmTokenSpaceGuid.PcdFdBaseAddress [Guids] gEfiGenericVariableGuid diff --git a/ArmPkg/Universal/Smbios/SmbiosMiscDxe/Type00/MiscBiosVendorFunction.c b/ArmPkg/Universal/Smbios/SmbiosMiscDxe/Type00/MiscBiosVendorFunction.c index 03f9f07cfa..b1b0d8eb5e 100644 --- a/ArmPkg/Universal/Smbios/SmbiosMiscDxe/Type00/MiscBiosVendorFunction.c +++ b/ArmPkg/Universal/Smbios/SmbiosMiscDxe/Type00/MiscBiosVendorFunction.c @@ -253,7 +253,7 @@ SMBIOS_MISC_TABLE_FUNCTION (MiscBiosVendor) { (VOID)CopyMem (SmbiosRecord, InputData, sizeof (SMBIOS_TABLE_TYPE0)); SmbiosRecord->Hdr.Length = sizeof (SMBIOS_TABLE_TYPE0); - SmbiosRecord->BiosSegment = (UINT16)(FixedPcdGet32 (PcdFdBaseAddress) / SIZE_64KB); + SmbiosRecord->BiosSegment = 0; if (BiosPhysicalSize < SIZE_16MB) { SmbiosRecord->BiosSize = Base2ToByteWith64KUnit (BiosPhysicalSize) - 1; } else { -- cgit v1.2.3