]>
Commit | Line | Data |
---|---|---|
1da177e4 | 1 | /* |
aae4d142 | 2 | * arch/sh/mm/nommu.c |
1da177e4 | 3 | * |
aae4d142 | 4 | * Various helper routines and stubs for MMUless SH. |
1da177e4 | 5 | * |
aae4d142 | 6 | * Copyright (C) 2002 - 2009 Paul Mundt |
1da177e4 LT |
7 | * |
8 | * Released under the terms of the GNU GPL v2.0. | |
9 | */ | |
10 | #include <linux/kernel.h> | |
aae4d142 PM |
11 | #include <linux/init.h> |
12 | #include <linux/string.h> | |
1da177e4 | 13 | #include <linux/mm.h> |
9acb98fb | 14 | #include <asm/pgtable.h> |
fa43972f | 15 | #include <asm/tlbflush.h> |
aae4d142 PM |
16 | #include <asm/page.h> |
17 | #include <asm/uaccess.h> | |
1da177e4 LT |
18 | |
19 | /* | |
20 | * Nothing too terribly exciting here .. | |
21 | */ | |
aae4d142 PM |
22 | void copy_page(void *to, void *from) |
23 | { | |
24 | memcpy(to, from, PAGE_SIZE); | |
25 | } | |
26 | ||
27 | __kernel_size_t __copy_user(void *to, const void *from, __kernel_size_t n) | |
28 | { | |
29 | memcpy(to, from, n); | |
30 | return 0; | |
31 | } | |
32 | ||
33 | __kernel_size_t __clear_user(void *to, __kernel_size_t n) | |
34 | { | |
35 | memset(to, 0, n); | |
36 | return 0; | |
37 | } | |
38 | ||
ea9af694 | 39 | void local_flush_tlb_all(void) |
1da177e4 LT |
40 | { |
41 | BUG(); | |
42 | } | |
43 | ||
ea9af694 | 44 | void local_flush_tlb_mm(struct mm_struct *mm) |
1da177e4 LT |
45 | { |
46 | BUG(); | |
47 | } | |
48 | ||
ea9af694 | 49 | void local_flush_tlb_range(struct vm_area_struct *vma, unsigned long start, |
1da177e4 LT |
50 | unsigned long end) |
51 | { | |
52 | BUG(); | |
53 | } | |
54 | ||
ea9af694 | 55 | void local_flush_tlb_page(struct vm_area_struct *vma, unsigned long page) |
1da177e4 LT |
56 | { |
57 | BUG(); | |
58 | } | |
59 | ||
ea9af694 | 60 | void local_flush_tlb_one(unsigned long asid, unsigned long page) |
1da177e4 LT |
61 | { |
62 | BUG(); | |
63 | } | |
64 | ||
ea9af694 | 65 | void local_flush_tlb_kernel_range(unsigned long start, unsigned long end) |
1da177e4 LT |
66 | { |
67 | BUG(); | |
68 | } | |
69 | ||
9cef7492 PM |
70 | void __update_tlb(struct vm_area_struct *vma, unsigned long address, pte_t pte) |
71 | { | |
72 | } | |
73 | ||
2739742c PM |
74 | void __init kmap_coherent_init(void) |
75 | { | |
76 | } | |
77 | ||
78 | void *kmap_coherent(struct page *page, unsigned long addr) | |
79 | { | |
80 | BUG(); | |
81 | return NULL; | |
82 | } | |
83 | ||
0906a3ad | 84 | void kunmap_coherent(void *kvaddr) |
2739742c PM |
85 | { |
86 | BUG(); | |
87 | } | |
88 | ||
9acb98fb PM |
89 | void __init page_table_range_init(unsigned long start, unsigned long end, |
90 | pgd_t *pgd_base) | |
91 | { | |
92 | } | |
52e8b118 PM |
93 | |
94 | void __set_fixmap(enum fixed_addresses idx, unsigned long phys, pgprot_t prot) | |
95 | { | |
96 | } | |
56d45b62 PM |
97 | |
98 | void pgtable_cache_init(void) | |
99 | { | |
100 | } |