diff options
Diffstat (limited to 'arch/xtensa/include/asm/page.h')
-rw-r--r-- | arch/xtensa/include/asm/page.h | 12 |
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 | ||
136 | struct page; | 136 | struct page; |
137 | struct vm_area_struct; | ||
137 | extern void clear_page(void *page); | 138 | extern void clear_page(void *page); |
138 | extern void copy_page(void *to, void *from); | 139 | extern 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 |
146 | extern void clear_user_page(void*, unsigned long, struct page*); | 147 | extern void clear_page_alias(void *vaddr, unsigned long paddr); |
147 | extern void copy_user_page(void*, void*, unsigned long, struct page*); | 148 | extern 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 | ||
152 | void clear_user_highpage(struct page *page, unsigned long vaddr); | ||
153 | #define __HAVE_ARCH_COPY_USER_HIGHPAGE | ||
154 | void 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) |