diff options
author | Paul Mundt <lethal@linux-sh.org> | 2009-08-14 20:19:19 -0400 |
---|---|---|
committer | Paul Mundt <lethal@linux-sh.org> | 2009-08-14 20:19:19 -0400 |
commit | 2739742c24f1a55365e71f0722bfdce8994e9c4e (patch) | |
tree | 2650b2a8aa4113437cc3590c57b4fae98fc25c5b /arch/sh/mm/tlb-nommu.c | |
parent | 8edcfcbbd131a3580db666ed1034c24d56eb6f5d (diff) |
sh: Provide the kmap_coherent() interface generically.
This plugs in kmap_coherent() for the non-SH4 cases to permit the
pg-mmu.c bits to be used generically across all CPUs. SH-5 is still in
the TODO state, but will move over to fixmap and the generic interface
gradually.
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
Diffstat (limited to 'arch/sh/mm/tlb-nommu.c')
-rw-r--r-- | arch/sh/mm/tlb-nommu.c | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/arch/sh/mm/tlb-nommu.c b/arch/sh/mm/tlb-nommu.c index 0ef5429943df..c49e9d24c2e6 100644 --- a/arch/sh/mm/tlb-nommu.c +++ b/arch/sh/mm/tlb-nommu.c | |||
@@ -55,6 +55,21 @@ void __update_cache(struct vm_area_struct *vma, | |||
55 | { | 55 | { |
56 | } | 56 | } |
57 | 57 | ||
58 | void __init kmap_coherent_init(void) | ||
59 | { | ||
60 | } | ||
61 | |||
62 | void *kmap_coherent(struct page *page, unsigned long addr) | ||
63 | { | ||
64 | BUG(); | ||
65 | return NULL; | ||
66 | } | ||
67 | |||
68 | void kunmap_coherent(void) | ||
69 | { | ||
70 | BUG(); | ||
71 | } | ||
72 | |||
58 | void __init page_table_range_init(unsigned long start, unsigned long end, | 73 | void __init page_table_range_init(unsigned long start, unsigned long end, |
59 | pgd_t *pgd_base) | 74 | pgd_t *pgd_base) |
60 | { | 75 | { |