Blame view
arch/sh/mm/nommu.c
1.65 KB
1da177e4c Linux-2.6.12-rc2 |
1 |
/* |
aae4d1428 sh: consolidate n... |
2 |
* arch/sh/mm/nommu.c |
1da177e4c Linux-2.6.12-rc2 |
3 |
* |
aae4d1428 sh: consolidate n... |
4 |
* Various helper routines and stubs for MMUless SH. |
1da177e4c Linux-2.6.12-rc2 |
5 |
* |
aae4d1428 sh: consolidate n... |
6 |
* Copyright (C) 2002 - 2009 Paul Mundt |
1da177e4c Linux-2.6.12-rc2 |
7 8 9 10 |
* * Released under the terms of the GNU GPL v2.0. */ #include <linux/kernel.h> |
aae4d1428 sh: consolidate n... |
11 12 |
#include <linux/init.h> #include <linux/string.h> |
1da177e4c Linux-2.6.12-rc2 |
13 |
#include <linux/mm.h> |
9acb98fb7 sh: Stub in page_... |
14 |
#include <asm/pgtable.h> |
fa43972fa sh: fixup many sp... |
15 |
#include <asm/tlbflush.h> |
aae4d1428 sh: consolidate n... |
16 17 |
#include <asm/page.h> #include <asm/uaccess.h> |
1da177e4c Linux-2.6.12-rc2 |
18 19 20 21 |
/* * Nothing too terribly exciting here .. */ |
aae4d1428 sh: consolidate n... |
22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 |
void copy_page(void *to, void *from) { memcpy(to, from, PAGE_SIZE); } __kernel_size_t __copy_user(void *to, const void *from, __kernel_size_t n) { memcpy(to, from, n); return 0; } __kernel_size_t __clear_user(void *to, __kernel_size_t n) { memset(to, 0, n); return 0; } |
ea9af6948 sh: Local TLB flu... |
38 |
void local_flush_tlb_all(void) |
1da177e4c Linux-2.6.12-rc2 |
39 40 41 |
{ BUG(); } |
ea9af6948 sh: Local TLB flu... |
42 |
void local_flush_tlb_mm(struct mm_struct *mm) |
1da177e4c Linux-2.6.12-rc2 |
43 44 45 |
{ BUG(); } |
ea9af6948 sh: Local TLB flu... |
46 |
void local_flush_tlb_range(struct vm_area_struct *vma, unsigned long start, |
1da177e4c Linux-2.6.12-rc2 |
47 48 49 50 |
unsigned long end) { BUG(); } |
ea9af6948 sh: Local TLB flu... |
51 |
void local_flush_tlb_page(struct vm_area_struct *vma, unsigned long page) |
1da177e4c Linux-2.6.12-rc2 |
52 53 54 |
{ BUG(); } |
ea9af6948 sh: Local TLB flu... |
55 |
void local_flush_tlb_one(unsigned long asid, unsigned long page) |
1da177e4c Linux-2.6.12-rc2 |
56 57 58 |
{ BUG(); } |
ea9af6948 sh: Local TLB flu... |
59 |
void local_flush_tlb_kernel_range(unsigned long start, unsigned long end) |
1da177e4c Linux-2.6.12-rc2 |
60 61 62 |
{ BUG(); } |
a8dc49b51 sh: stub __flush_... |
63 64 65 |
void __flush_tlb_global(void) { } |
9cef74926 sh: update_mmu_ca... |
66 67 68 |
void __update_tlb(struct vm_area_struct *vma, unsigned long address, pte_t pte) { } |
2739742c2 sh: Provide the k... |
69 70 71 72 73 74 75 76 77 |
void __init kmap_coherent_init(void) { } void *kmap_coherent(struct page *page, unsigned long addr) { BUG(); return NULL; } |
0906a3ad3 sh: Fix up and op... |
78 |
void kunmap_coherent(void *kvaddr) |
2739742c2 sh: Provide the k... |
79 80 81 |
{ BUG(); } |
9acb98fb7 sh: Stub in page_... |
82 83 84 85 |
void __init page_table_range_init(unsigned long start, unsigned long end, pgd_t *pgd_base) { } |
52e8b118e sh: Provide a stu... |
86 87 88 89 |
void __set_fixmap(enum fixed_addresses idx, unsigned long phys, pgprot_t prot) { } |
56d45b62c sh: Fix up nommu ... |
90 91 92 93 |
void pgtable_cache_init(void) { } |