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/cache-sh5.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/cache-sh5.c')
-rw-r--r-- | arch/sh/mm/cache-sh5.c | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/arch/sh/mm/cache-sh5.c b/arch/sh/mm/cache-sh5.c index 698113fce814..28f3c8fb1b99 100644 --- a/arch/sh/mm/cache-sh5.c +++ b/arch/sh/mm/cache-sh5.c | |||
@@ -29,6 +29,21 @@ void __init p3_cache_init(void) | |||
29 | dtlb_cache_slot = sh64_get_wired_dtlb_entry(); | 29 | dtlb_cache_slot = sh64_get_wired_dtlb_entry(); |
30 | } | 30 | } |
31 | 31 | ||
32 | void __init kmap_coherent_init(void) | ||
33 | { | ||
34 | /* XXX ... */ | ||
35 | } | ||
36 | |||
37 | void *kmap_coherent(struct page *page, unsigned long addr) | ||
38 | { | ||
39 | /* XXX ... */ | ||
40 | return NULL; | ||
41 | } | ||
42 | |||
43 | void kunmap_coherent(void) | ||
44 | { | ||
45 | } | ||
46 | |||
32 | #ifdef CONFIG_DCACHE_DISABLED | 47 | #ifdef CONFIG_DCACHE_DISABLED |
33 | #define sh64_dcache_purge_all() do { } while (0) | 48 | #define sh64_dcache_purge_all() do { } while (0) |
34 | #define sh64_dcache_purge_coloured_phy_page(paddr, eaddr) do { } while (0) | 49 | #define sh64_dcache_purge_coloured_phy_page(paddr, eaddr) do { } while (0) |