diff options
author | Michal Simek <monstr@monstr.eu> | 2009-10-15 09:18:13 -0400 |
---|---|---|
committer | Michal Simek <monstr@monstr.eu> | 2009-12-14 02:45:00 -0500 |
commit | a1f55113ca2130f775eeebe799a401619bfd0295 (patch) | |
tree | 53e676e30e6a0b3e7dc235c709865bdb337f1d84 /arch/microblaze | |
parent | 6a8dfe1cac5c591aecf88b38b8f4b206ee636761 (diff) |
microblaze: Move cache macro from cache.h to cacheflush.h
Signed-off-by: Michal Simek <monstr@monstr.eu>
Diffstat (limited to 'arch/microblaze')
-rw-r--r-- | arch/microblaze/include/asm/cache.h | 16 | ||||
-rw-r--r-- | arch/microblaze/include/asm/cacheflush.h | 17 | ||||
-rw-r--r-- | arch/microblaze/kernel/process.c | 1 |
3 files changed, 18 insertions, 16 deletions
diff --git a/arch/microblaze/include/asm/cache.h b/arch/microblaze/include/asm/cache.h index c209c47509d5..e52210891d78 100644 --- a/arch/microblaze/include/asm/cache.h +++ b/arch/microblaze/include/asm/cache.h | |||
@@ -21,20 +21,4 @@ | |||
21 | 21 | ||
22 | #define SMP_CACHE_BYTES L1_CACHE_BYTES | 22 | #define SMP_CACHE_BYTES L1_CACHE_BYTES |
23 | 23 | ||
24 | void _enable_icache(void); | ||
25 | void _disable_icache(void); | ||
26 | void _invalidate_icache(unsigned int addr); | ||
27 | |||
28 | #define __enable_icache() _enable_icache() | ||
29 | #define __disable_icache() _disable_icache() | ||
30 | #define __invalidate_icache(addr) _invalidate_icache(addr) | ||
31 | |||
32 | void _enable_dcache(void); | ||
33 | void _disable_dcache(void); | ||
34 | void _invalidate_dcache(unsigned int addr); | ||
35 | |||
36 | #define __enable_dcache() _enable_dcache() | ||
37 | #define __disable_dcache() _disable_dcache() | ||
38 | #define __invalidate_dcache(addr) _invalidate_dcache(addr) | ||
39 | |||
40 | #endif /* _ASM_MICROBLAZE_CACHE_H */ | 24 | #endif /* _ASM_MICROBLAZE_CACHE_H */ |
diff --git a/arch/microblaze/include/asm/cacheflush.h b/arch/microblaze/include/asm/cacheflush.h index 088076e657b3..1f04b9111454 100644 --- a/arch/microblaze/include/asm/cacheflush.h +++ b/arch/microblaze/include/asm/cacheflush.h | |||
@@ -65,6 +65,23 @@ | |||
65 | #define flush_cache_vmap(start, end) do { } while (0) | 65 | #define flush_cache_vmap(start, end) do { } while (0) |
66 | #define flush_cache_vunmap(start, end) do { } while (0) | 66 | #define flush_cache_vunmap(start, end) do { } while (0) |
67 | 67 | ||
68 | |||
69 | void _enable_icache(void); | ||
70 | void _disable_icache(void); | ||
71 | void _invalidate_icache(unsigned int addr); | ||
72 | |||
73 | #define __enable_icache() _enable_icache() | ||
74 | #define __disable_icache() _disable_icache() | ||
75 | #define __invalidate_icache(addr) _invalidate_icache(addr) | ||
76 | |||
77 | void _enable_dcache(void); | ||
78 | void _disable_dcache(void); | ||
79 | void _invalidate_dcache(unsigned int addr); | ||
80 | |||
81 | #define __enable_dcache() _enable_dcache() | ||
82 | #define __disable_dcache() _disable_dcache() | ||
83 | #define __invalidate_dcache(addr) _invalidate_dcache(addr) | ||
84 | |||
68 | struct page; | 85 | struct page; |
69 | struct mm_struct; | 86 | struct mm_struct; |
70 | struct vm_area_struct; | 87 | struct vm_area_struct; |
diff --git a/arch/microblaze/kernel/process.c b/arch/microblaze/kernel/process.c index c592d475b3d8..812f1bf06c9e 100644 --- a/arch/microblaze/kernel/process.c +++ b/arch/microblaze/kernel/process.c | |||
@@ -15,6 +15,7 @@ | |||
15 | #include <linux/bitops.h> | 15 | #include <linux/bitops.h> |
16 | #include <asm/system.h> | 16 | #include <asm/system.h> |
17 | #include <asm/pgalloc.h> | 17 | #include <asm/pgalloc.h> |
18 | #include <asm/cacheflush.h> | ||
18 | 19 | ||
19 | void show_regs(struct pt_regs *regs) | 20 | void show_regs(struct pt_regs *regs) |
20 | { | 21 | { |