GUI: Fix Tomato RAF theme for all builds. Compilation typo.
[tomato.git] / release / src-rt-6.x.4708 / linux / linux-2.6.36 / arch / sh / mm / nommu.c
blob7694f50c90347d619ac1c5a77be8e5d636f2f5fb
1 /*
2 * arch/sh/mm/nommu.c
4 * Various helper routines and stubs for MMUless SH.
6 * Copyright (C) 2002 - 2009 Paul Mundt
8 * Released under the terms of the GNU GPL v2.0.
9 */
10 #include <linux/kernel.h>
11 #include <linux/init.h>
12 #include <linux/string.h>
13 #include <linux/mm.h>
14 #include <asm/pgtable.h>
15 #include <asm/tlbflush.h>
16 #include <asm/page.h>
17 #include <asm/uaccess.h>
20 * Nothing too terribly exciting here ..
22 void copy_page(void *to, void *from)
24 memcpy(to, from, PAGE_SIZE);
27 __kernel_size_t __copy_user(void *to, const void *from, __kernel_size_t n)
29 memcpy(to, from, n);
30 return 0;
33 __kernel_size_t __clear_user(void *to, __kernel_size_t n)
35 memset(to, 0, n);
36 return 0;
39 void local_flush_tlb_all(void)
41 BUG();
44 void local_flush_tlb_mm(struct mm_struct *mm)
46 BUG();
49 void local_flush_tlb_range(struct vm_area_struct *vma, unsigned long start,
50 unsigned long end)
52 BUG();
55 void local_flush_tlb_page(struct vm_area_struct *vma, unsigned long page)
57 BUG();
60 void local_flush_tlb_one(unsigned long asid, unsigned long page)
62 BUG();
65 void local_flush_tlb_kernel_range(unsigned long start, unsigned long end)
67 BUG();
70 void __update_tlb(struct vm_area_struct *vma, unsigned long address, pte_t pte)
74 void __init kmap_coherent_init(void)
78 void *kmap_coherent(struct page *page, unsigned long addr)
80 BUG();
81 return NULL;
84 void kunmap_coherent(void *kvaddr)
86 BUG();
89 void __init page_table_range_init(unsigned long start, unsigned long end,
90 pgd_t *pgd_base)
94 void __set_fixmap(enum fixed_addresses idx, unsigned long phys, pgprot_t prot)
98 void pgtable_cache_init(void)