diff options
Diffstat (limited to 'arch/sh/include/asm/page.h')
-rw-r--r-- | arch/sh/include/asm/page.h | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/arch/sh/include/asm/page.h b/arch/sh/include/asm/page.h index a31ab40040f0..5208b7bfc24e 100644 --- a/arch/sh/include/asm/page.h +++ b/arch/sh/include/asm/page.h | |||
@@ -56,21 +56,25 @@ pages_do_alias(unsigned long addr1, unsigned long addr2) | |||
56 | return (addr1 ^ addr2) & shm_align_mask; | 56 | return (addr1 ^ addr2) & shm_align_mask; |
57 | } | 57 | } |
58 | 58 | ||
59 | extern void clear_page(void *to); | 59 | |
60 | #define clear_page(page) memset((void *)(page), 0, PAGE_SIZE) | ||
60 | extern void copy_page(void *to, void *from); | 61 | extern void copy_page(void *to, void *from); |
61 | 62 | ||
63 | struct page; | ||
64 | struct vm_area_struct; | ||
65 | |||
62 | #if !defined(CONFIG_CACHE_OFF) && defined(CONFIG_MMU) && \ | 66 | #if !defined(CONFIG_CACHE_OFF) && defined(CONFIG_MMU) && \ |
63 | (defined(CONFIG_CPU_SH5) || defined(CONFIG_CPU_SH4) || \ | 67 | (defined(CONFIG_CPU_SH5) || defined(CONFIG_CPU_SH4) || \ |
64 | defined(CONFIG_SH7705_CACHE_32KB)) | 68 | defined(CONFIG_SH7705_CACHE_32KB)) |
65 | struct page; | ||
66 | struct vm_area_struct; | ||
67 | extern void clear_user_page(void *to, unsigned long address, struct page *page); | 69 | extern void clear_user_page(void *to, unsigned long address, struct page *page); |
68 | extern void copy_user_page(void *to, void *from, unsigned long address, | 70 | extern void copy_user_page(void *to, void *from, unsigned long address, |
69 | struct page *page); | 71 | struct page *page); |
70 | #if defined(CONFIG_CPU_SH4) | 72 | #if defined(CONFIG_CPU_SH4) || defined(CONFIG_SH7705_CACHE_32KB) |
71 | extern void copy_user_highpage(struct page *to, struct page *from, | 73 | extern void copy_user_highpage(struct page *to, struct page *from, |
72 | unsigned long vaddr, struct vm_area_struct *vma); | 74 | unsigned long vaddr, struct vm_area_struct *vma); |
73 | #define __HAVE_ARCH_COPY_USER_HIGHPAGE | 75 | #define __HAVE_ARCH_COPY_USER_HIGHPAGE |
76 | extern void clear_user_highpage(struct page *page, unsigned long vaddr); | ||
77 | #define clear_user_highpage clear_user_highpage | ||
74 | #endif | 78 | #endif |
75 | #else | 79 | #else |
76 | #define clear_user_page(page, vaddr, pg) clear_page(page) | 80 | #define clear_user_page(page, vaddr, pg) clear_page(page) |