Home
last modified time | relevance | path

Searched refs:ValidMtrrAddressMask (Results 1 – 2 of 2) sorted by relevance

/device/linaro/bootloader/edk2/IntelFsp2Pkg/Library/BaseCacheLib/
DCacheLib.c37 IN UINT64 ValidMtrrAddressMask,
177 IN UINT64 ValidMtrrAddressMask in EfiProgramMtrr() argument
192 TempQword = (MemoryAddress & ValidMtrrAddressMask) | MemoryCacheType; in EfiProgramMtrr()
199 AsmWriteMsr64 (MtrrNumber + 1, (TempQword & ValidMtrrAddressMask) | B_EFI_MSR_CACHE_MTRR_VALID); in EfiProgramMtrr()
390 UINT64 ValidMtrrAddressMask; in SetCacheAttributes() local
396 ValidMtrrAddressMask = (LShiftU64((UINT64) 1, (Cpuid_RegEax & 0xFF)) - 1) & (~(UINT64)0x0FFF); in SetCacheAttributes()
398 ValidMtrrAddressMask = (LShiftU64((UINT64) 1, 36) - 1) & (~(UINT64)0x0FFF); in SetCacheAttributes()
404 if ((MemoryAddress & ~ValidMtrrAddressMask) != 0 || (MemoryLength & ~ValidMtrrAddressMask) != 0) { in SetCacheAttributes()
443 ValidMtrrAddressMask, in SetCacheAttributes()
478 ValidMtrrAddressMask in SetCacheAttributes()
[all …]
/device/linaro/bootloader/edk2/IntelFspPkg/Library/BaseCacheLib/
DCacheLib.c37 IN UINT64 ValidMtrrAddressMask,
177 IN UINT64 ValidMtrrAddressMask in EfiProgramMtrr() argument
192 TempQword = (MemoryAddress & ValidMtrrAddressMask) | MemoryCacheType; in EfiProgramMtrr()
199 AsmWriteMsr64 (MtrrNumber + 1, (TempQword & ValidMtrrAddressMask) | B_EFI_MSR_CACHE_MTRR_VALID); in EfiProgramMtrr()
390 UINT64 ValidMtrrAddressMask; in SetCacheAttributes() local
396 ValidMtrrAddressMask = (LShiftU64((UINT64) 1, (Cpuid_RegEax & 0xFF)) - 1) & (~(UINT64)0x0FFF); in SetCacheAttributes()
398 ValidMtrrAddressMask = (LShiftU64((UINT64) 1, 36) - 1) & (~(UINT64)0x0FFF); in SetCacheAttributes()
404 if ((MemoryAddress & ~ValidMtrrAddressMask) != 0 || (MemoryLength & ~ValidMtrrAddressMask) != 0) { in SetCacheAttributes()
443 ValidMtrrAddressMask, in SetCacheAttributes()
478 ValidMtrrAddressMask in SetCacheAttributes()
[all …]