summaryrefslogtreecommitdiff
path: root/IntelFspPkg
diff options
context:
space:
mode:
authorArd Biesheuvel <ard.biesheuvel@linaro.org>2016-04-19 16:19:02 +0200
committerArd Biesheuvel <ard.biesheuvel@linaro.org>2016-05-10 14:44:39 +0200
commit885d57ef091fd58916163e79ee694ddaf8fcc25e (patch)
treebc9bab8f8f3ff5a41b836557ef1f5e2d59abdcf0 /IntelFspPkg
parent80e5a33da1fcbe54cbcc178f1880e80e297d5fd4 (diff)
downloadedk2-platforms-885d57ef091fd58916163e79ee694ddaf8fcc25e.tar.xz
ArmPkg/ArmDmaLib: interpret GCD attributes as a bit field
Comparing a GCD attribute field directly against EFI_MEMORY_UC and EFI_MEMORY_WT is incorrect, since it may have other bits set as well which are not related to the cacheability of the region. So instead, test explicitly against the flags EFI_MEMORY_WB and EFI_MEMORY_WT, which must be set if the region may be mapped with cacheable attributes. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Ard Biesheuvel <ard.biesheuvel@linaro.org> Reviewed-by: Leif Lindholm <leif.lindholm@linaro.org>
Diffstat (limited to 'IntelFspPkg')
0 files changed, 0 insertions, 0 deletions