summaryrefslogtreecommitdiff
path: root/arch/arm/mach-h720x
diff options
context:
space:
mode:
authorCatalin Marinas <catalin.marinas@arm.com>2010-08-09 10:32:46 +0100
committerCatalin Marinas <catalin.marinas@arm.com>2010-08-09 10:32:46 +0100
commit1c8c36795c1090a3c04be8c6ac4e23c5681eb86d (patch)
tree3c179c577d2f2d68c2fe96979c6fdf2ba34efb3e /arch/arm/mach-h720x
parentcbb8d1ea62c479e925ebc7c6d03fc7aee0566641 (diff)
ARM: Implement phys_mem_access_prot() to avoid attributes aliasing
ARMv7 onwards requires that there are no aliases to the same physical location using different memory types (i.e. Normal vs Strongly Ordered). Access to SO mappings when the unaligned accesses are handled in hardware is also Unpredictable (pgprot_noncached() mappings in user space). The /dev/mem driver requires uncached mappings with O_SYNC. The patch implements the phys_mem_access_prot() function which generates Strongly Ordered memory attributes if !pfn_valid() (independent of O_SYNC) and Normal Noncacheable (writecombine) if O_SYNC. Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
Diffstat (limited to 'arch/arm/mach-h720x')
0 files changed, 0 insertions, 0 deletions