mirror of
https://github.com/acidanthera/audk.git
synced 2025-07-25 14:44:28 +02:00
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>
This commit is contained in:
parent
b0930e3f4e
commit
27b044605c
@ -78,7 +78,6 @@
|
|||||||
gArmTokenSpaceGuid.PcdBaseBoardManufacturer
|
gArmTokenSpaceGuid.PcdBaseBoardManufacturer
|
||||||
gArmTokenSpaceGuid.PcdBaseBoardProductName
|
gArmTokenSpaceGuid.PcdBaseBoardProductName
|
||||||
gArmTokenSpaceGuid.PcdBaseBoardVersion
|
gArmTokenSpaceGuid.PcdBaseBoardVersion
|
||||||
gArmTokenSpaceGuid.PcdFdBaseAddress
|
|
||||||
|
|
||||||
[Guids]
|
[Guids]
|
||||||
gEfiGenericVariableGuid
|
gEfiGenericVariableGuid
|
||||||
|
@ -253,7 +253,7 @@ SMBIOS_MISC_TABLE_FUNCTION (MiscBiosVendor) {
|
|||||||
(VOID)CopyMem (SmbiosRecord, InputData, sizeof (SMBIOS_TABLE_TYPE0));
|
(VOID)CopyMem (SmbiosRecord, InputData, sizeof (SMBIOS_TABLE_TYPE0));
|
||||||
|
|
||||||
SmbiosRecord->Hdr.Length = 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) {
|
if (BiosPhysicalSize < SIZE_16MB) {
|
||||||
SmbiosRecord->BiosSize = Base2ToByteWith64KUnit (BiosPhysicalSize) - 1;
|
SmbiosRecord->BiosSize = Base2ToByteWith64KUnit (BiosPhysicalSize) - 1;
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user