diff options
| author | Max Filippov <jcmvbkbc@gmail.com> | 2014-12-08 19:04:24 -0500 |
|---|---|---|
| committer | Max Filippov <jcmvbkbc@gmail.com> | 2014-12-08 19:22:57 -0500 |
| commit | ff009ab6d4d4581b62fa055ab6233133aca25ab8 (patch) | |
| tree | f7a8ba6df8c05e353f3e4ac28524a330025c538f | |
| parent | e00d8b2f447c02951306e3a474fc56c43e67f093 (diff) | |
xtensa: fix kmap_prot definition
Replace PAGE_KERNEL with PAGE_KERNEL_EXEC to allow copy_to_user_page
invalidate icache for pages mapped with kmap.
Cc: stable@vger.kernel.org
Signed-off-by: Max Filippov <jcmvbkbc@gmail.com>
| -rw-r--r-- | arch/xtensa/include/asm/highmem.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/xtensa/include/asm/highmem.h b/arch/xtensa/include/asm/highmem.h index 2c7901edffaf..01cef6b40829 100644 --- a/arch/xtensa/include/asm/highmem.h +++ b/arch/xtensa/include/asm/highmem.h | |||
| @@ -25,7 +25,7 @@ | |||
| 25 | #define PKMAP_NR(virt) (((virt) - PKMAP_BASE) >> PAGE_SHIFT) | 25 | #define PKMAP_NR(virt) (((virt) - PKMAP_BASE) >> PAGE_SHIFT) |
| 26 | #define PKMAP_ADDR(nr) (PKMAP_BASE + ((nr) << PAGE_SHIFT)) | 26 | #define PKMAP_ADDR(nr) (PKMAP_BASE + ((nr) << PAGE_SHIFT)) |
| 27 | 27 | ||
| 28 | #define kmap_prot PAGE_KERNEL | 28 | #define kmap_prot PAGE_KERNEL_EXEC |
| 29 | 29 | ||
| 30 | #if DCACHE_WAY_SIZE > PAGE_SIZE | 30 | #if DCACHE_WAY_SIZE > PAGE_SIZE |
| 31 | #define get_pkmap_color get_pkmap_color | 31 | #define get_pkmap_color get_pkmap_color |
