diff options
Diffstat (limited to 'arch/arm/mm/cache-v4wb.S')
-rw-r--r-- | arch/arm/mm/cache-v4wb.S | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/arch/arm/mm/cache-v4wb.S b/arch/arm/mm/cache-v4wb.S index cd4945321407..2522f8c8fbb1 100644 --- a/arch/arm/mm/cache-v4wb.S +++ b/arch/arm/mm/cache-v4wb.S | |||
@@ -9,6 +9,7 @@ | |||
9 | */ | 9 | */ |
10 | #include <linux/linkage.h> | 10 | #include <linux/linkage.h> |
11 | #include <linux/init.h> | 11 | #include <linux/init.h> |
12 | #include <asm/assembler.h> | ||
12 | #include <asm/memory.h> | 13 | #include <asm/memory.h> |
13 | #include <asm/page.h> | 14 | #include <asm/page.h> |
14 | #include "proc-macros.S" | 15 | #include "proc-macros.S" |
@@ -58,7 +59,7 @@ flush_base: | |||
58 | ENTRY(v4wb_flush_icache_all) | 59 | ENTRY(v4wb_flush_icache_all) |
59 | mov r0, #0 | 60 | mov r0, #0 |
60 | mcr p15, 0, r0, c7, c5, 0 @ invalidate I cache | 61 | mcr p15, 0, r0, c7, c5, 0 @ invalidate I cache |
61 | mov pc, lr | 62 | ret lr |
62 | ENDPROC(v4wb_flush_icache_all) | 63 | ENDPROC(v4wb_flush_icache_all) |
63 | 64 | ||
64 | /* | 65 | /* |
@@ -94,7 +95,7 @@ __flush_whole_cache: | |||
94 | blo 1b | 95 | blo 1b |
95 | #endif | 96 | #endif |
96 | mcr p15, 0, ip, c7, c10, 4 @ drain write buffer | 97 | mcr p15, 0, ip, c7, c10, 4 @ drain write buffer |
97 | mov pc, lr | 98 | ret lr |
98 | 99 | ||
99 | /* | 100 | /* |
100 | * flush_user_cache_range(start, end, flags) | 101 | * flush_user_cache_range(start, end, flags) |
@@ -122,7 +123,7 @@ ENTRY(v4wb_flush_user_cache_range) | |||
122 | blo 1b | 123 | blo 1b |
123 | tst r2, #VM_EXEC | 124 | tst r2, #VM_EXEC |
124 | mcrne p15, 0, ip, c7, c10, 4 @ drain write buffer | 125 | mcrne p15, 0, ip, c7, c10, 4 @ drain write buffer |
125 | mov pc, lr | 126 | ret lr |
126 | 127 | ||
127 | /* | 128 | /* |
128 | * flush_kern_dcache_area(void *addr, size_t size) | 129 | * flush_kern_dcache_area(void *addr, size_t size) |
@@ -170,7 +171,7 @@ ENTRY(v4wb_coherent_user_range) | |||
170 | mov r0, #0 | 171 | mov r0, #0 |
171 | mcr p15, 0, r0, c7, c5, 0 @ invalidate I cache | 172 | mcr p15, 0, r0, c7, c5, 0 @ invalidate I cache |
172 | mcr p15, 0, r0, c7, c10, 4 @ drain WB | 173 | mcr p15, 0, r0, c7, c10, 4 @ drain WB |
173 | mov pc, lr | 174 | ret lr |
174 | 175 | ||
175 | 176 | ||
176 | /* | 177 | /* |
@@ -195,7 +196,7 @@ v4wb_dma_inv_range: | |||
195 | cmp r0, r1 | 196 | cmp r0, r1 |
196 | blo 1b | 197 | blo 1b |
197 | mcr p15, 0, r0, c7, c10, 4 @ drain write buffer | 198 | mcr p15, 0, r0, c7, c10, 4 @ drain write buffer |
198 | mov pc, lr | 199 | ret lr |
199 | 200 | ||
200 | /* | 201 | /* |
201 | * dma_clean_range(start, end) | 202 | * dma_clean_range(start, end) |
@@ -212,7 +213,7 @@ v4wb_dma_clean_range: | |||
212 | cmp r0, r1 | 213 | cmp r0, r1 |
213 | blo 1b | 214 | blo 1b |
214 | mcr p15, 0, r0, c7, c10, 4 @ drain write buffer | 215 | mcr p15, 0, r0, c7, c10, 4 @ drain write buffer |
215 | mov pc, lr | 216 | ret lr |
216 | 217 | ||
217 | /* | 218 | /* |
218 | * dma_flush_range(start, end) | 219 | * dma_flush_range(start, end) |
@@ -248,7 +249,7 @@ ENDPROC(v4wb_dma_map_area) | |||
248 | * - dir - DMA direction | 249 | * - dir - DMA direction |
249 | */ | 250 | */ |
250 | ENTRY(v4wb_dma_unmap_area) | 251 | ENTRY(v4wb_dma_unmap_area) |
251 | mov pc, lr | 252 | ret lr |
252 | ENDPROC(v4wb_dma_unmap_area) | 253 | ENDPROC(v4wb_dma_unmap_area) |
253 | 254 | ||
254 | .globl v4wb_flush_kern_cache_louis | 255 | .globl v4wb_flush_kern_cache_louis |