diff options
Diffstat (limited to 'arch/arm/mm/proc-arm922.S')
-rw-r--r-- | arch/arm/mm/proc-arm922.S | 34 |
1 files changed, 17 insertions, 17 deletions
diff --git a/arch/arm/mm/proc-arm922.S b/arch/arm/mm/proc-arm922.S index 2a758b06c6f6..0c6d5ac5a6d4 100644 --- a/arch/arm/mm/proc-arm922.S +++ b/arch/arm/mm/proc-arm922.S | |||
@@ -65,7 +65,7 @@ | |||
65 | * cpu_arm922_proc_init() | 65 | * cpu_arm922_proc_init() |
66 | */ | 66 | */ |
67 | ENTRY(cpu_arm922_proc_init) | 67 | ENTRY(cpu_arm922_proc_init) |
68 | mov pc, lr | 68 | ret lr |
69 | 69 | ||
70 | /* | 70 | /* |
71 | * cpu_arm922_proc_fin() | 71 | * cpu_arm922_proc_fin() |
@@ -75,7 +75,7 @@ ENTRY(cpu_arm922_proc_fin) | |||
75 | bic r0, r0, #0x1000 @ ...i............ | 75 | bic r0, r0, #0x1000 @ ...i............ |
76 | bic r0, r0, #0x000e @ ............wca. | 76 | bic r0, r0, #0x000e @ ............wca. |
77 | mcr p15, 0, r0, c1, c0, 0 @ disable caches | 77 | mcr p15, 0, r0, c1, c0, 0 @ disable caches |
78 | mov pc, lr | 78 | ret lr |
79 | 79 | ||
80 | /* | 80 | /* |
81 | * cpu_arm922_reset(loc) | 81 | * cpu_arm922_reset(loc) |
@@ -99,7 +99,7 @@ ENTRY(cpu_arm922_reset) | |||
99 | bic ip, ip, #0x000f @ ............wcam | 99 | bic ip, ip, #0x000f @ ............wcam |
100 | bic ip, ip, #0x1100 @ ...i...s........ | 100 | bic ip, ip, #0x1100 @ ...i...s........ |
101 | mcr p15, 0, ip, c1, c0, 0 @ ctrl register | 101 | mcr p15, 0, ip, c1, c0, 0 @ ctrl register |
102 | mov pc, r0 | 102 | ret r0 |
103 | ENDPROC(cpu_arm922_reset) | 103 | ENDPROC(cpu_arm922_reset) |
104 | .popsection | 104 | .popsection |
105 | 105 | ||
@@ -109,7 +109,7 @@ ENDPROC(cpu_arm922_reset) | |||
109 | .align 5 | 109 | .align 5 |
110 | ENTRY(cpu_arm922_do_idle) | 110 | ENTRY(cpu_arm922_do_idle) |
111 | mcr p15, 0, r0, c7, c0, 4 @ Wait for interrupt | 111 | mcr p15, 0, r0, c7, c0, 4 @ Wait for interrupt |
112 | mov pc, lr | 112 | ret lr |
113 | 113 | ||
114 | 114 | ||
115 | #ifndef CONFIG_CPU_DCACHE_WRITETHROUGH | 115 | #ifndef CONFIG_CPU_DCACHE_WRITETHROUGH |
@@ -122,7 +122,7 @@ ENTRY(cpu_arm922_do_idle) | |||
122 | ENTRY(arm922_flush_icache_all) | 122 | ENTRY(arm922_flush_icache_all) |
123 | mov r0, #0 | 123 | mov r0, #0 |
124 | mcr p15, 0, r0, c7, c5, 0 @ invalidate I cache | 124 | mcr p15, 0, r0, c7, c5, 0 @ invalidate I cache |
125 | mov pc, lr | 125 | ret lr |
126 | ENDPROC(arm922_flush_icache_all) | 126 | ENDPROC(arm922_flush_icache_all) |
127 | 127 | ||
128 | /* | 128 | /* |
@@ -153,7 +153,7 @@ __flush_whole_cache: | |||
153 | tst r2, #VM_EXEC | 153 | tst r2, #VM_EXEC |
154 | mcrne p15, 0, ip, c7, c5, 0 @ invalidate I cache | 154 | mcrne p15, 0, ip, c7, c5, 0 @ invalidate I cache |
155 | mcrne p15, 0, ip, c7, c10, 4 @ drain WB | 155 | mcrne p15, 0, ip, c7, c10, 4 @ drain WB |
156 | mov pc, lr | 156 | ret lr |
157 | 157 | ||
158 | /* | 158 | /* |
159 | * flush_user_cache_range(start, end, flags) | 159 | * flush_user_cache_range(start, end, flags) |
@@ -179,7 +179,7 @@ ENTRY(arm922_flush_user_cache_range) | |||
179 | blo 1b | 179 | blo 1b |
180 | tst r2, #VM_EXEC | 180 | tst r2, #VM_EXEC |
181 | mcrne p15, 0, ip, c7, c10, 4 @ drain WB | 181 | mcrne p15, 0, ip, c7, c10, 4 @ drain WB |
182 | mov pc, lr | 182 | ret lr |
183 | 183 | ||
184 | /* | 184 | /* |
185 | * coherent_kern_range(start, end) | 185 | * coherent_kern_range(start, end) |
@@ -213,7 +213,7 @@ ENTRY(arm922_coherent_user_range) | |||
213 | blo 1b | 213 | blo 1b |
214 | mcr p15, 0, r0, c7, c10, 4 @ drain WB | 214 | mcr p15, 0, r0, c7, c10, 4 @ drain WB |
215 | mov r0, #0 | 215 | mov r0, #0 |
216 | mov pc, lr | 216 | ret lr |
217 | 217 | ||
218 | /* | 218 | /* |
219 | * flush_kern_dcache_area(void *addr, size_t size) | 219 | * flush_kern_dcache_area(void *addr, size_t size) |
@@ -233,7 +233,7 @@ ENTRY(arm922_flush_kern_dcache_area) | |||
233 | mov r0, #0 | 233 | mov r0, #0 |
234 | mcr p15, 0, r0, c7, c5, 0 @ invalidate I cache | 234 | mcr p15, 0, r0, c7, c5, 0 @ invalidate I cache |
235 | mcr p15, 0, r0, c7, c10, 4 @ drain WB | 235 | mcr p15, 0, r0, c7, c10, 4 @ drain WB |
236 | mov pc, lr | 236 | ret lr |
237 | 237 | ||
238 | /* | 238 | /* |
239 | * dma_inv_range(start, end) | 239 | * dma_inv_range(start, end) |
@@ -259,7 +259,7 @@ arm922_dma_inv_range: | |||
259 | cmp r0, r1 | 259 | cmp r0, r1 |
260 | blo 1b | 260 | blo 1b |
261 | mcr p15, 0, r0, c7, c10, 4 @ drain WB | 261 | mcr p15, 0, r0, c7, c10, 4 @ drain WB |
262 | mov pc, lr | 262 | ret lr |
263 | 263 | ||
264 | /* | 264 | /* |
265 | * dma_clean_range(start, end) | 265 | * dma_clean_range(start, end) |
@@ -278,7 +278,7 @@ arm922_dma_clean_range: | |||
278 | cmp r0, r1 | 278 | cmp r0, r1 |
279 | blo 1b | 279 | blo 1b |
280 | mcr p15, 0, r0, c7, c10, 4 @ drain WB | 280 | mcr p15, 0, r0, c7, c10, 4 @ drain WB |
281 | mov pc, lr | 281 | ret lr |
282 | 282 | ||
283 | /* | 283 | /* |
284 | * dma_flush_range(start, end) | 284 | * dma_flush_range(start, end) |
@@ -295,7 +295,7 @@ ENTRY(arm922_dma_flush_range) | |||
295 | cmp r0, r1 | 295 | cmp r0, r1 |
296 | blo 1b | 296 | blo 1b |
297 | mcr p15, 0, r0, c7, c10, 4 @ drain WB | 297 | mcr p15, 0, r0, c7, c10, 4 @ drain WB |
298 | mov pc, lr | 298 | ret lr |
299 | 299 | ||
300 | /* | 300 | /* |
301 | * dma_map_area(start, size, dir) | 301 | * dma_map_area(start, size, dir) |
@@ -318,7 +318,7 @@ ENDPROC(arm922_dma_map_area) | |||
318 | * - dir - DMA direction | 318 | * - dir - DMA direction |
319 | */ | 319 | */ |
320 | ENTRY(arm922_dma_unmap_area) | 320 | ENTRY(arm922_dma_unmap_area) |
321 | mov pc, lr | 321 | ret lr |
322 | ENDPROC(arm922_dma_unmap_area) | 322 | ENDPROC(arm922_dma_unmap_area) |
323 | 323 | ||
324 | .globl arm922_flush_kern_cache_louis | 324 | .globl arm922_flush_kern_cache_louis |
@@ -336,7 +336,7 @@ ENTRY(cpu_arm922_dcache_clean_area) | |||
336 | subs r1, r1, #CACHE_DLINESIZE | 336 | subs r1, r1, #CACHE_DLINESIZE |
337 | bhi 1b | 337 | bhi 1b |
338 | #endif | 338 | #endif |
339 | mov pc, lr | 339 | ret lr |
340 | 340 | ||
341 | /* =============================== PageTable ============================== */ | 341 | /* =============================== PageTable ============================== */ |
342 | 342 | ||
@@ -371,7 +371,7 @@ ENTRY(cpu_arm922_switch_mm) | |||
371 | mcr p15, 0, r0, c2, c0, 0 @ load page table pointer | 371 | mcr p15, 0, r0, c2, c0, 0 @ load page table pointer |
372 | mcr p15, 0, ip, c8, c7, 0 @ invalidate I & D TLBs | 372 | mcr p15, 0, ip, c8, c7, 0 @ invalidate I & D TLBs |
373 | #endif | 373 | #endif |
374 | mov pc, lr | 374 | ret lr |
375 | 375 | ||
376 | /* | 376 | /* |
377 | * cpu_arm922_set_pte_ext(ptep, pte, ext) | 377 | * cpu_arm922_set_pte_ext(ptep, pte, ext) |
@@ -386,7 +386,7 @@ ENTRY(cpu_arm922_set_pte_ext) | |||
386 | mcr p15, 0, r0, c7, c10, 1 @ clean D entry | 386 | mcr p15, 0, r0, c7, c10, 1 @ clean D entry |
387 | mcr p15, 0, r0, c7, c10, 4 @ drain WB | 387 | mcr p15, 0, r0, c7, c10, 4 @ drain WB |
388 | #endif /* CONFIG_MMU */ | 388 | #endif /* CONFIG_MMU */ |
389 | mov pc, lr | 389 | ret lr |
390 | 390 | ||
391 | .type __arm922_setup, #function | 391 | .type __arm922_setup, #function |
392 | __arm922_setup: | 392 | __arm922_setup: |
@@ -401,7 +401,7 @@ __arm922_setup: | |||
401 | mrc p15, 0, r0, c1, c0 @ get control register v4 | 401 | mrc p15, 0, r0, c1, c0 @ get control register v4 |
402 | bic r0, r0, r5 | 402 | bic r0, r0, r5 |
403 | orr r0, r0, r6 | 403 | orr r0, r0, r6 |
404 | mov pc, lr | 404 | ret lr |
405 | .size __arm922_setup, . - __arm922_setup | 405 | .size __arm922_setup, . - __arm922_setup |
406 | 406 | ||
407 | /* | 407 | /* |