aboutsummaryrefslogtreecommitdiffstats
path: root/arch/xtensa/include/asm/page.h
diff options
context:
space:
mode:
Diffstat (limited to 'arch/xtensa/include/asm/page.h')
-rw-r--r--arch/xtensa/include/asm/page.h12
1 files changed, 10 insertions, 2 deletions
diff --git a/arch/xtensa/include/asm/page.h b/arch/xtensa/include/asm/page.h
index 47f582333f6b..11721ccd7f23 100644
--- a/arch/xtensa/include/asm/page.h
+++ b/arch/xtensa/include/asm/page.h
@@ -134,6 +134,7 @@ static inline __attribute_const__ int get_order(unsigned long size)
134#endif 134#endif
135 135
136struct page; 136struct page;
137struct vm_area_struct;
137extern void clear_page(void *page); 138extern void clear_page(void *page);
138extern void copy_page(void *to, void *from); 139extern void copy_page(void *to, void *from);
139 140
@@ -143,8 +144,15 @@ extern void copy_page(void *to, void *from);
143 */ 144 */
144 145
145#if DCACHE_WAY_SIZE > PAGE_SIZE 146#if DCACHE_WAY_SIZE > PAGE_SIZE
146extern void clear_user_page(void*, unsigned long, struct page*); 147extern void clear_page_alias(void *vaddr, unsigned long paddr);
147extern void copy_user_page(void*, void*, unsigned long, struct page*); 148extern void copy_page_alias(void *to, void *from,
149 unsigned long to_paddr, unsigned long from_paddr);
150
151#define clear_user_highpage clear_user_highpage
152void clear_user_highpage(struct page *page, unsigned long vaddr);
153#define __HAVE_ARCH_COPY_USER_HIGHPAGE
154void copy_user_highpage(struct page *to, struct page *from,
155 unsigned long vaddr, struct vm_area_struct *vma);
148#else 156#else
149# define clear_user_page(page, vaddr, pg) clear_page(page) 157# define clear_user_page(page, vaddr, pg) clear_page(page)
150# define copy_user_page(to, from, vaddr, pg) copy_page(to, from) 158# define copy_user_page(to, from, vaddr, pg) copy_page(to, from)