aboutsummaryrefslogtreecommitdiffstats
path: root/arch/xtensa/include
diff options
context:
space:
mode:
authorMax Filippov <jcmvbkbc@gmail.com>2012-12-21 21:35:04 -0500
committerChris Zankel <chris@zankel.net>2013-02-23 22:12:53 -0500
commitde73b6b1bd7480301c8e8fbe58184448b1757945 (patch)
tree9aca0e26cfa96e18e1d353777349ee30cc25718d /arch/xtensa/include
parent475c32d0a1b836fc3798ea96cc334a4bfffec2cf (diff)
xtensa: avoid mmap cache aliasing
Provide arch_get_unmapped_area function aligning shared memory mapping addresses to the biggest of the page size or the cache way size. That guarantees that corresponding virtual addresses of shared mappings are cached by the same cache sets. Signed-off-by: Max Filippov <jcmvbkbc@gmail.com> Signed-off-by: Chris Zankel <chris@zankel.net>
Diffstat (limited to 'arch/xtensa/include')
-rw-r--r--arch/xtensa/include/asm/pgtable.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/arch/xtensa/include/asm/pgtable.h b/arch/xtensa/include/asm/pgtable.h
index c90ea5bfa1b4..d7546c94da52 100644
--- a/arch/xtensa/include/asm/pgtable.h
+++ b/arch/xtensa/include/asm/pgtable.h
@@ -410,6 +410,10 @@ typedef pte_t *pte_addr_t;
410#define __HAVE_ARCH_PTEP_SET_WRPROTECT 410#define __HAVE_ARCH_PTEP_SET_WRPROTECT
411#define __HAVE_ARCH_PTEP_MKDIRTY 411#define __HAVE_ARCH_PTEP_MKDIRTY
412#define __HAVE_ARCH_PTE_SAME 412#define __HAVE_ARCH_PTE_SAME
413/* We provide our own get_unmapped_area to cope with
414 * SHM area cache aliasing for userland.
415 */
416#define HAVE_ARCH_UNMAPPED_AREA
413 417
414#include <asm-generic/pgtable.h> 418#include <asm-generic/pgtable.h>
415 419