diff options
author | Max Filippov <jcmvbkbc@gmail.com> | 2014-07-15 00:51:49 +0200 |
---|---|---|
committer | Max Filippov <jcmvbkbc@gmail.com> | 2014-08-14 09:59:21 +0200 |
commit | 32544d9c10c42bac3be8b87d2fc95b0aef008795 (patch) | |
tree | 11983adf6b934cc71ba3013623d8869c867b49fd /arch/xtensa/include/asm/page.h | |
parent | xtensa: implement clear_user_highpage and copy_user_highpage (diff) | |
download | linux-32544d9c10c42bac3be8b87d2fc95b0aef008795.tar.xz linux-32544d9c10c42bac3be8b87d2fc95b0aef008795.zip |
xtensa: support aliasing cache in k[un]map_atomic
Map high memory pages at virtual addresses with color that match color
of their physical address. Existing cache alias management mechanisms
may be used with such pages.
Signed-off-by: Max Filippov <jcmvbkbc@gmail.com>
Diffstat (limited to 'arch/xtensa/include/asm/page.h')
-rw-r--r-- | arch/xtensa/include/asm/page.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/xtensa/include/asm/page.h b/arch/xtensa/include/asm/page.h index 11721ccd7f23..abe24c6f8b2f 100644 --- a/arch/xtensa/include/asm/page.h +++ b/arch/xtensa/include/asm/page.h @@ -78,7 +78,9 @@ # define DCACHE_ALIAS_EQ(a,b) ((((a) ^ (b)) & DCACHE_ALIAS_MASK) == 0) #else # define DCACHE_ALIAS_ORDER 0 +# define DCACHE_ALIAS(a) ((void)(a), 0) #endif +#define DCACHE_N_COLORS (1 << DCACHE_ALIAS_ORDER) #if ICACHE_WAY_SIZE > PAGE_SIZE # define ICACHE_ALIAS_ORDER (ICACHE_WAY_SHIFT - PAGE_SHIFT) |