summaryrefslogtreecommitdiffstats
path: root/ArmPkg
diff options
context:
space:
mode:
authorMing Huang <huangming@linux.alibaba.com>2021-10-14 15:23:14 +0800
committermergify[bot] <37929162+mergify[bot]@users.noreply.github.com>2021-10-15 10:47:50 +0000
commit7e43d3e08611ac4c4bc41c46470052d4118168eb (patch)
treeb911f52b9e5e634636a475d03f24897390966da7 /ArmPkg
parent785cfd33053f506d4a1c17100356a63f24e98f45 (diff)
downloadedk2-7e43d3e08611ac4c4bc41c46470052d4118168eb.tar.gz
edk2-7e43d3e08611ac4c4bc41c46470052d4118168eb.tar.bz2
edk2-7e43d3e08611ac4c4bc41c46470052d4118168eb.zip
ArmPkg/Smbios: Fix max cache size 2 wrong issue
As SMBIOS spec, bit-31 of maximum cache size 2 should be 1 for 64K granularity. Signed-off-by: Ming Huang <huangming@linux.alibaba.com> Reviewed-by: Rebecca Cran <rebecca@nuviainc.com> Acked-by: Leif Lindholm <leif@nuviainc.com>
Diffstat (limited to 'ArmPkg')
-rw-r--r--ArmPkg/Universal/Smbios/ProcessorSubClassDxe/ProcessorSubClass.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ArmPkg/Universal/Smbios/ProcessorSubClassDxe/ProcessorSubClass.c b/ArmPkg/Universal/Smbios/ProcessorSubClassDxe/ProcessorSubClass.c
index fb484086a4..4b409ff745 100644
--- a/ArmPkg/Universal/Smbios/ProcessorSubClassDxe/ProcessorSubClass.c
+++ b/ArmPkg/Universal/Smbios/ProcessorSubClassDxe/ProcessorSubClass.c
@@ -219,7 +219,7 @@ ConfigureCacheArchitectureInformation (
CacheSize32 = CacheSize16;
} else if ((CacheSize64 / 64) < MAX_INT16) {
CacheSize16 = (1 << 15) | (CacheSize64 / 64);
- CacheSize32 = CacheSize16;
+ CacheSize32 = (1 << 31) | (CacheSize64 / 64);
} else {
if ((CacheSize64 / 1024) <= 2047) {
CacheSize32 = CacheSize64;