diff options
Diffstat (limited to 'arch/parisc/include/asm/cacheflush.h')
-rw-r--r-- | arch/parisc/include/asm/cacheflush.h | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/arch/parisc/include/asm/cacheflush.h b/arch/parisc/include/asm/cacheflush.h index f388a85bba11..dc9286a4dcc7 100644 --- a/arch/parisc/include/asm/cacheflush.h +++ b/arch/parisc/include/asm/cacheflush.h | |||
@@ -26,8 +26,6 @@ void flush_user_dcache_range_asm(unsigned long, unsigned long); | |||
26 | void flush_kernel_dcache_range_asm(unsigned long, unsigned long); | 26 | void flush_kernel_dcache_range_asm(unsigned long, unsigned long); |
27 | void flush_kernel_dcache_page_asm(void *); | 27 | void flush_kernel_dcache_page_asm(void *); |
28 | void flush_kernel_icache_page(void *); | 28 | void flush_kernel_icache_page(void *); |
29 | void flush_user_dcache_page(unsigned long); | ||
30 | void flush_user_icache_page(unsigned long); | ||
31 | void flush_user_dcache_range(unsigned long, unsigned long); | 29 | void flush_user_dcache_range(unsigned long, unsigned long); |
32 | void flush_user_icache_range(unsigned long, unsigned long); | 30 | void flush_user_icache_range(unsigned long, unsigned long); |
33 | 31 | ||
@@ -90,12 +88,15 @@ void flush_cache_page(struct vm_area_struct *vma, unsigned long vmaddr, unsigned | |||
90 | void flush_cache_range(struct vm_area_struct *vma, | 88 | void flush_cache_range(struct vm_area_struct *vma, |
91 | unsigned long start, unsigned long end); | 89 | unsigned long start, unsigned long end); |
92 | 90 | ||
91 | /* defined in pacache.S exported in cache.c used by flush_anon_page */ | ||
92 | void flush_dcache_page_asm(unsigned long phys_addr, unsigned long vaddr); | ||
93 | |||
93 | #define ARCH_HAS_FLUSH_ANON_PAGE | 94 | #define ARCH_HAS_FLUSH_ANON_PAGE |
94 | static inline void | 95 | static inline void |
95 | flush_anon_page(struct vm_area_struct *vma, struct page *page, unsigned long vmaddr) | 96 | flush_anon_page(struct vm_area_struct *vma, struct page *page, unsigned long vmaddr) |
96 | { | 97 | { |
97 | if (PageAnon(page)) | 98 | if (PageAnon(page)) |
98 | flush_user_dcache_page(vmaddr); | 99 | flush_dcache_page_asm(page_to_phys(page), vmaddr); |
99 | } | 100 | } |
100 | 101 | ||
101 | #define ARCH_HAS_FLUSH_KERNEL_DCACHE_PAGE | 102 | #define ARCH_HAS_FLUSH_KERNEL_DCACHE_PAGE |