summaryrefslogtreecommitdiffstats
path: root/IntelFsp2Pkg/Library/BaseCacheLib/CacheLib.c
diff options
context:
space:
mode:
authorS, Ashraf Ali <ashraf.ali.s@intel.com>2021-07-09 15:33:16 +0800
committermergify[bot] <37929162+mergify[bot]@users.noreply.github.com>2021-07-14 03:54:44 +0000
commit91f5d3b41043b8a0c8a5ed00e1c88bca4a777067 (patch)
treef504b294e436f24816f2f5a0567030efd07a729a /IntelFsp2Pkg/Library/BaseCacheLib/CacheLib.c
parentd0b6596b8e7ad72c86de0b9faa342a7a866bc87e (diff)
downloadedk2-91f5d3b41043b8a0c8a5ed00e1c88bca4a777067.tar.gz
edk2-91f5d3b41043b8a0c8a5ed00e1c88bca4a777067.tar.bz2
edk2-91f5d3b41043b8a0c8a5ed00e1c88bca4a777067.zip
IntelFsp2Pkg: BaseCacheLib EfiProgramMtrr MtrrNumber Should be UINT32
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>
Diffstat (limited to 'IntelFsp2Pkg/Library/BaseCacheLib/CacheLib.c')
-rw-r--r--IntelFsp2Pkg/Library/BaseCacheLib/CacheLib.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/IntelFsp2Pkg/Library/BaseCacheLib/CacheLib.c b/IntelFsp2Pkg/Library/BaseCacheLib/CacheLib.c
index 17e895c345..2365f7514e 100644
--- a/IntelFsp2Pkg/Library/BaseCacheLib/CacheLib.c
+++ b/IntelFsp2Pkg/Library/BaseCacheLib/CacheLib.c
@@ -1,6 +1,6 @@
/** @file
- Copyright (c) 2014 - 2019, Intel Corporation. All rights reserved.<BR>
+ Copyright (c) 2014 - 2021, Intel Corporation. All rights reserved.<BR>
SPDX-License-Identifier: BSD-2-Clause-Patent
**/
@@ -164,7 +164,7 @@ EfiRecoverCacheMtrr (
**/
VOID
EfiProgramMtrr (
- IN UINTN MtrrNumber,
+ IN UINT32 MtrrNumber,
IN EFI_PHYSICAL_ADDRESS MemoryAddress,
IN UINT64 MemoryLength,
IN EFI_MEMORY_CACHE_TYPE MemoryCacheType,