diff options
Diffstat (limited to 'include/asm-parisc/page.h')
-rw-r--r-- | include/asm-parisc/page.h | 22 |
1 files changed, 4 insertions, 18 deletions
diff --git a/include/asm-parisc/page.h b/include/asm-parisc/page.h index 57d6d82756dd..3567208191e3 100644 --- a/include/asm-parisc/page.h +++ b/include/asm-parisc/page.h | |||
@@ -26,24 +26,10 @@ | |||
26 | 26 | ||
27 | struct page; | 27 | struct page; |
28 | 28 | ||
29 | extern void purge_kernel_dcache_page(unsigned long); | 29 | void copy_user_page_asm(void *to, void *from); |
30 | extern void copy_user_page_asm(void *to, void *from); | 30 | void copy_user_page(void *vto, void *vfrom, unsigned long vaddr, |
31 | extern void clear_user_page_asm(void *page, unsigned long vaddr); | 31 | struct page *pg); |
32 | 32 | void clear_user_page(void *page, unsigned long vaddr, struct page *pg); | |
33 | static inline void | ||
34 | copy_user_page(void *vto, void *vfrom, unsigned long vaddr, struct page *pg) | ||
35 | { | ||
36 | copy_user_page_asm(vto, vfrom); | ||
37 | flush_kernel_dcache_page_asm(vto); | ||
38 | /* XXX: ppc flushes icache too, should we? */ | ||
39 | } | ||
40 | |||
41 | static inline void | ||
42 | clear_user_page(void *page, unsigned long vaddr, struct page *pg) | ||
43 | { | ||
44 | purge_kernel_dcache_page((unsigned long)page); | ||
45 | clear_user_page_asm(page, vaddr); | ||
46 | } | ||
47 | 33 | ||
48 | /* | 34 | /* |
49 | * These are used to make use of C type-checking.. | 35 | * These are used to make use of C type-checking.. |