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/include | |
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/include')
-rw-r--r-- | arch/sh/include/asm/cacheflush.h | 4 | ||||
-rw-r--r-- | arch/sh/include/asm/pgtable.h | 6 |
2 files changed, 4 insertions, 6 deletions
diff --git a/arch/sh/include/asm/cacheflush.h b/arch/sh/include/asm/cacheflush.h index 5dffbd126e46..0e87e87cc01f 100644 --- a/arch/sh/include/asm/cacheflush.h +++ b/arch/sh/include/asm/cacheflush.h | |||
@@ -74,5 +74,9 @@ extern void copy_from_user_page(struct vm_area_struct *vma, | |||
74 | #define flush_cache_vmap(start, end) flush_cache_all() | 74 | #define flush_cache_vmap(start, end) flush_cache_all() |
75 | #define flush_cache_vunmap(start, end) flush_cache_all() | 75 | #define flush_cache_vunmap(start, end) flush_cache_all() |
76 | 76 | ||
77 | void kmap_coherent_init(void); | ||
78 | void *kmap_coherent(struct page *page, unsigned long addr); | ||
79 | void kunmap_coherent(void); | ||
80 | |||
77 | #endif /* __KERNEL__ */ | 81 | #endif /* __KERNEL__ */ |
78 | #endif /* __ASM_SH_CACHEFLUSH_H */ | 82 | #endif /* __ASM_SH_CACHEFLUSH_H */ |
diff --git a/arch/sh/include/asm/pgtable.h b/arch/sh/include/asm/pgtable.h index 3cd7127af957..4f3efa7d5a64 100644 --- a/arch/sh/include/asm/pgtable.h +++ b/arch/sh/include/asm/pgtable.h | |||
@@ -158,12 +158,6 @@ extern void paging_init(void); | |||
158 | extern void page_table_range_init(unsigned long start, unsigned long end, | 158 | extern void page_table_range_init(unsigned long start, unsigned long end, |
159 | pgd_t *pgd); | 159 | pgd_t *pgd); |
160 | 160 | ||
161 | #if defined(CONFIG_MMU) && !defined(CONFIG_CPU_SH5) | ||
162 | extern void kmap_coherent_init(void); | ||
163 | #else | ||
164 | #define kmap_coherent_init() do { } while (0) | ||
165 | #endif | ||
166 | |||
167 | /* arch/sh/mm/mmap.c */ | 161 | /* arch/sh/mm/mmap.c */ |
168 | #define HAVE_ARCH_UNMAPPED_AREA | 162 | #define HAVE_ARCH_UNMAPPED_AREA |
169 | #define HAVE_ARCH_UNMAPPED_AREA_TOPDOWN | 163 | #define HAVE_ARCH_UNMAPPED_AREA_TOPDOWN |