audk/ArmPkg/Universal/Smbios/SmbiosMiscDxe
Rebecca Cran c49cb8f30e ArmPkg: SmbiosMiscDxe: Don't populate ExtendedBiosSize when size < 16MB
According to the SMBIOS specification, the ExtendedBiosSize field should
be zero when the BIOS size is less than 16MB:

"Size (n) where 64K * (n+1) is the size of the
physical device containing the BIOS, in
bytes.
FFh - size is 16MB or greater, see Extended
BIOS ROM Size for actual size."

Fix the code in MiscBiosVendorFunction.c to only populate the
ExtendedBiosSize field if the BIOS size is greater than 16MB.

Fix the code to correctly populate the ExtendedBiosSize field with the
unit bits set to MB if the size is between 16MB and 16GB.

Signed-off-by: Rebecca Cran <rebecca@nuviainc.com>
Reviewed-by: Sami Mujawar <sami.mujawar@arm.com>
Acked-by: Nhi Pham <nhi@os.amperecomputing.com>
2021-10-05 09:25:52 +00:00
..
Type00 ArmPkg: SmbiosMiscDxe: Don't populate ExtendedBiosSize when size < 16MB 2021-10-05 09:25:52 +00:00
Type01 ArmPkg: Add Universal/Smbios/SmbiosMiscDxe/Type01 2021-02-08 19:35:23 +00:00
Type02 ArmPkg: Add Universal/Smbios/SmbiosMiscDxe/Type02 2021-02-08 19:35:23 +00:00
Type03 ArmPkg: Fix typo of Manufacturer in comment in SmbiosMiscDxe 2021-04-27 12:46:26 +00:00
Type13 ArmPkg: Correct small typos 2021-04-28 12:03:51 +00:00
Type32 ArmPkg: Allow platforms to report their boot status via OemMiscLib call 2021-04-27 12:46:26 +00:00
SmbiosMisc.h ArmPkg: Add Universal/Smbios/SmbiosMiscDxe 2021-02-08 19:35:23 +00:00
SmbiosMiscDataTable.c ArmPkg: Add Universal/Smbios/SmbiosMiscDxe 2021-02-08 19:35:23 +00:00
SmbiosMiscDxe.inf ArmPkg: Add Universal/Smbios/SmbiosMiscDxe 2021-02-08 19:35:23 +00:00
SmbiosMiscDxeStrings.uni ArmPkg: Add Universal/Smbios/SmbiosMiscDxe 2021-02-08 19:35:23 +00:00
SmbiosMiscEntryPoint.c ArmPkg: Add Universal/Smbios/SmbiosMiscDxe 2021-02-08 19:35:23 +00:00