1 Index: linux-2.6.23/arch/mips/mm/init.c
2 ===================================================================
3 --- linux-2.6.23.orig/arch/mips/mm/init.c 2007-10-13 11:46:58.762489429 +0200
4 +++ linux-2.6.23/arch/mips/mm/init.c 2007-10-13 11:47:36.092616749 +0200
6 preempt_check_resched();
9 -void copy_user_highpage(struct page *to, struct page *from,
10 - unsigned long vaddr, struct vm_area_struct *vma)
14 - vto = kmap_atomic(to, KM_USER1);
15 - if (cpu_has_dc_aliases && cpu_use_kmap_coherent && !Page_dcache_dirty(from)) {
16 - vfrom = kmap_coherent(from, vaddr);
17 - copy_page(vto, vfrom);
20 - vfrom = kmap_atomic(from, KM_USER0);
21 - copy_page(vto, vfrom);
22 - kunmap_atomic(vfrom, KM_USER0);
24 - if (((vma->vm_flags & VM_EXEC) && !cpu_has_ic_fills_f_dc) ||
25 - pages_do_alias((unsigned long)vto, vaddr & PAGE_MASK))
26 - flush_data_cache_page((unsigned long)vto);
27 - kunmap_atomic(vto, KM_USER1);
28 - /* Make sure this page is cleared on other CPU's too before using it */
32 -EXPORT_SYMBOL(copy_user_highpage);
34 void copy_to_user_page(struct vm_area_struct *vma,
35 struct page *page, unsigned long vaddr, void *dst, const void *src,
37 Index: linux-2.6.23/include/asm-mips/page.h
38 ===================================================================
39 --- linux-2.6.23.orig/include/asm-mips/page.h 2007-10-13 11:45:50.518600430 +0200
40 +++ linux-2.6.23/include/asm-mips/page.h 2007-10-13 11:47:26.472068504 +0200
44 #include <linux/pfn.h>
45 +#include <asm/cpu-features.h>
50 flush_data_cache_page((unsigned long)addr);
53 -extern void copy_user_page(void *vto, void *vfrom, unsigned long vaddr,
55 -struct vm_area_struct;
56 -extern void copy_user_highpage(struct page *to, struct page *from,
57 - unsigned long vaddr, struct vm_area_struct *vma);
58 +static inline void copy_user_page(void *vto, void *vfrom, unsigned long vaddr,
61 + extern void (*flush_data_cache_page)(unsigned long addr);
63 -#define __HAVE_ARCH_COPY_USER_HIGHPAGE
64 + copy_page(vto, vfrom);
65 + if (!cpu_has_ic_fills_f_dc ||
66 + pages_do_alias((unsigned long)vto, vaddr & PAGE_MASK))
67 + flush_data_cache_page((unsigned long)vto);
71 * These are used to make use of C type-checking..