]> git.proxmox.com Git - mirror_edk2.git/blobdiff - ArmPkg/Universal/Smbios/ProcessorSubClassDxe/ProcessorSubClass.c
ArmPkg/Smbios: Fix max cache size 2 wrong issue
[mirror_edk2.git] / ArmPkg / Universal / Smbios / ProcessorSubClassDxe / ProcessorSubClass.c
index fb484086a4570b1765782fe7b8dc81f4d106eda2..4b409ff7458ced9e1f5a005b90739eac2faf445a 100644 (file)
@@ -219,7 +219,7 @@ ConfigureCacheArchitectureInformation (
     CacheSize32 = CacheSize16;\r
   } else if ((CacheSize64 / 64) < MAX_INT16) {\r
     CacheSize16 = (1 << 15) | (CacheSize64 / 64);\r
-    CacheSize32 = CacheSize16;\r
+    CacheSize32 = (1 << 31) | (CacheSize64 / 64);\r
   } else {\r
     if ((CacheSize64 / 1024) <= 2047) {\r
       CacheSize32 = CacheSize64;\r