diff options
Diffstat (limited to 'include/asm-generic/cacheflush.h')
-rw-r--r-- | include/asm-generic/cacheflush.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/include/asm-generic/cacheflush.h b/include/asm-generic/cacheflush.h index 57b5c3c82e86..87bc536ccde3 100644 --- a/include/asm-generic/cacheflush.h +++ b/include/asm-generic/cacheflush.h | |||
@@ -24,7 +24,10 @@ | |||
24 | #define flush_cache_vunmap(start, end) do { } while (0) | 24 | #define flush_cache_vunmap(start, end) do { } while (0) |
25 | 25 | ||
26 | #define copy_to_user_page(vma, page, vaddr, dst, src, len) \ | 26 | #define copy_to_user_page(vma, page, vaddr, dst, src, len) \ |
27 | memcpy(dst, src, len) | 27 | do { \ |
28 | memcpy(dst, src, len); \ | ||
29 | flush_icache_user_range(vma, page, vaddr, len); \ | ||
30 | } while (0) | ||
28 | #define copy_from_user_page(vma, page, vaddr, dst, src, len) \ | 31 | #define copy_from_user_page(vma, page, vaddr, dst, src, len) \ |
29 | memcpy(dst, src, len) | 32 | memcpy(dst, src, len) |
30 | 33 | ||