summaryrefslogtreecommitdiff
path: root/IntelFspPkg/Library/BaseCacheLib/CacheLib.c
diff options
context:
space:
mode:
authorjyao1 <jyao1>2014-08-06 13:27:14 +0000
committerjyao1 <jyao1@6f19259b-4bc3-4df7-8a09-765794883524>2014-08-06 13:27:14 +0000
commita81fcd30c1aff139f0007c277c49c52bf55c303c (patch)
tree598d719348ac6667911ae81561a0dd9902793029 /IntelFspPkg/Library/BaseCacheLib/CacheLib.c
parente7a8edfdf6128729737ec9eda360689a972b7c27 (diff)
downloadedk2-platforms-a81fcd30c1aff139f0007c277c49c52bf55c303c.tar.xz
Eliminate duplicated file GUID.
Eliminate duplicate GUID definition. Do explicit data cast. Use StrnCpy instead of StrCpy. Update GCC assembly. Contributed-under: TianoCore Contribution Agreement 1.0 Signed off by: Jiewen Yao <jiewen.yao@intel.com> Reviewed by: Eric Dong <eric.dong@intel.com> Reviewed by: Liming Gao <liming.gao@intel.com> git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15762 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'IntelFspPkg/Library/BaseCacheLib/CacheLib.c')
-rw-r--r--IntelFspPkg/Library/BaseCacheLib/CacheLib.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/IntelFspPkg/Library/BaseCacheLib/CacheLib.c b/IntelFspPkg/Library/BaseCacheLib/CacheLib.c
index aaaeb8b97b..5c77962393 100644
--- a/IntelFspPkg/Library/BaseCacheLib/CacheLib.c
+++ b/IntelFspPkg/Library/BaseCacheLib/CacheLib.c
@@ -159,7 +159,7 @@ EfiRecoverCacheMtrr (
//
if (EnableMtrr) {
TempQword = AsmReadMsr64(EFI_MSR_CACHE_IA32_MTRR_DEF_TYPE);
- TempQword |= (B_EFI_MSR_GLOBAL_MTRR_ENABLE | B_EFI_MSR_FIXED_MTRR_ENABLE);
+ TempQword |= (UINT64)(B_EFI_MSR_GLOBAL_MTRR_ENABLE | B_EFI_MSR_FIXED_MTRR_ENABLE);
} else {
TempQword = OldMtrr;
}