summaryrefslogtreecommitdiff
path: root/ArmPkg
diff options
context:
space:
mode:
authorRebecca Cran <rebecca@bsdio.com>2024-05-15 09:09:03 -0600
committerRebecca Cran <rebecca@bsdio.com>2024-06-03 14:28:45 -0600
commit27b044605cd5f6b33a3d231576003850b3fe305b (patch)
treed1d89398edb1a12934f20e14a745a14ee24ac5f4 /ArmPkg
parentb0930e3f4e6de1ce1c480bca687b44875e071f74 (diff)
downloadedk2-27b044605cd5f6b33a3d231576003850b3fe305b.zip
edk2-27b044605cd5f6b33a3d231576003850b3fe305b.tar.gz
edk2-27b044605cd5f6b33a3d231576003850b3fe305b.tar.bz2
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 <rebecca@bsdio.com>
Diffstat (limited to 'ArmPkg')
-rw-r--r--ArmPkg/Universal/Smbios/SmbiosMiscDxe/SmbiosMiscDxe.inf1
-rw-r--r--ArmPkg/Universal/Smbios/SmbiosMiscDxe/Type00/MiscBiosVendorFunction.c2
2 files changed, 1 insertions, 2 deletions
diff --git a/ArmPkg/Universal/Smbios/SmbiosMiscDxe/SmbiosMiscDxe.inf b/ArmPkg/Universal/Smbios/SmbiosMiscDxe/SmbiosMiscDxe.inf
index 60d8fe3..e8f1011 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 03f9f07..b1b0d8e 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 {