]> git.proxmox.com Git - mirror_edk2.git/commitdiff
IntelFsp2Pkg: BaseCacheLib EfiProgramMtrr MtrrNumber Should be UINT32
authorS, Ashraf Ali <ashraf.ali.s@intel.com>
Fri, 9 Jul 2021 07:33:16 +0000 (15:33 +0800)
committermergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
Wed, 14 Jul 2021 03:54:44 +0000 (03:54 +0000)
REF:https://bugzilla.tianocore.org/show_bug.cgi?id=3485

CacheLib EfiProgramMtrr Function takes MTRR number as a input parameter,
in the function the parameter is defined as UINTN were as the caller
calling MTTR number in UINT32.

Signed-off-by: Ashraf Ali S <ashraf.ali.s@intel.com>
Cc: Ray Ni <ray.ni@intel.com>
Cc: Chasel Chiu <chasel.chiu@intel.com>
Cc: Nate DeSimone <nathaniel.l.desimone@intel.com>
Cc: Star Zeng <star.zeng@intel.com>
Cc: Digant H Solanki <digant.h.solanki@intel.com>
Cc: Sangeetha V <sangeetha.v@intel.com>
Reviewed-by: Chasel Chiu <chasel.chiu@intel.com>
IntelFsp2Pkg/Library/BaseCacheLib/BaseCacheLib.inf
IntelFsp2Pkg/Library/BaseCacheLib/CacheLib.c

index d9034bcbafc902812798798116a058722dea0809..9a513fb6df77e8cc0549cad7b713af827a421bb6 100644 (file)
@@ -1,7 +1,7 @@
 ## @file\r
 #  Instance of BaseCache.\r
 #\r
-#  Copyright (c) 2014 - 2017, Intel Corporation. All rights reserved.<BR>\r
+#  Copyright (c) 2014 - 2021, Intel Corporation. All rights reserved.<BR>\r
 #\r
 #  SPDX-License-Identifier: BSD-2-Clause-Patent\r
 #\r
@@ -15,7 +15,7 @@
   VERSION_STRING                 = 1.0\r
   LIBRARY_CLASS                  = CacheLib\r
 \r
-[Sources.IA32]\r
+[Sources]\r
   CacheLib.c\r
   CacheLibInternal.h\r
 \r
index 17e895c3452894f8db8230a378967f700921c7a6..2365f7514e12d97c26fa233f313d071d68047ddb 100644 (file)
@@ -1,6 +1,6 @@
 /** @file\r
 \r
-  Copyright (c) 2014 - 2019, Intel Corporation. All rights reserved.<BR>\r
+  Copyright (c) 2014 - 2021, Intel Corporation. All rights reserved.<BR>\r
   SPDX-License-Identifier: BSD-2-Clause-Patent\r
 \r
 **/\r
@@ -164,7 +164,7 @@ EfiRecoverCacheMtrr (
 **/\r
 VOID\r
 EfiProgramMtrr (\r
-  IN  UINT                    MtrrNumber,\r
+  IN  UINT32                    MtrrNumber,\r
   IN  EFI_PHYSICAL_ADDRESS      MemoryAddress,\r
   IN  UINT64                    MemoryLength,\r
   IN  EFI_MEMORY_CACHE_TYPE     MemoryCacheType,\r