Skip to content

Commit

Permalink
ArmPkg: Set BIOS Segment to 0 in SMBIOS Type 0 table
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
bexcran committed Jun 3, 2024
1 parent b0930e3 commit 27b0446
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion ArmPkg/Universal/Smbios/SmbiosMiscDxe/SmbiosMiscDxe.inf
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,6 @@
gArmTokenSpaceGuid.PcdBaseBoardManufacturer
gArmTokenSpaceGuid.PcdBaseBoardProductName
gArmTokenSpaceGuid.PcdBaseBoardVersion
gArmTokenSpaceGuid.PcdFdBaseAddress

[Guids]
gEfiGenericVariableGuid
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 27b0446

Please sign in to comment.