summaryrefslogtreecommitdiffstats
path: root/SecurityPkg/Library
diff options
context:
space:
mode:
authorRebecca Cran <rebecca@nuviainc.com>2021-10-04 10:22:33 -0600
committermergify[bot] <37929162+mergify[bot]@users.noreply.github.com>2021-10-05 09:25:52 +0000
commitc49cb8f30e6223dc6b55903af178afa1dfde857f (patch)
tree7a10e87bf6eb250d7051f102e06d4163c1bdcf77 /SecurityPkg/Library
parent4cc1458dbe004b1d70534caa55f475f6d19fe14a (diff)
downloadedk2-c49cb8f30e6223dc6b55903af178afa1dfde857f.tar.gz
edk2-c49cb8f30e6223dc6b55903af178afa1dfde857f.tar.bz2
edk2-c49cb8f30e6223dc6b55903af178afa1dfde857f.zip
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>
Diffstat (limited to 'SecurityPkg/Library')
0 files changed, 0 insertions, 0 deletions