diff options
Diffstat (limited to 'arch/arm/mm/proc-arm926.S')
-rw-r--r-- | arch/arm/mm/proc-arm926.S | 34 |
1 files changed, 17 insertions, 17 deletions
diff --git a/arch/arm/mm/proc-arm926.S b/arch/arm/mm/proc-arm926.S index 0f098f407c9f..252b2503038d 100644 --- a/arch/arm/mm/proc-arm926.S +++ b/arch/arm/mm/proc-arm926.S | |||
@@ -55,7 +55,7 @@ | |||
55 | * cpu_arm926_proc_init() | 55 | * cpu_arm926_proc_init() |
56 | */ | 56 | */ |
57 | ENTRY(cpu_arm926_proc_init) | 57 | ENTRY(cpu_arm926_proc_init) |
58 | mov pc, lr | 58 | ret lr |
59 | 59 | ||
60 | /* | 60 | /* |
61 | * cpu_arm926_proc_fin() | 61 | * cpu_arm926_proc_fin() |
@@ -65,7 +65,7 @@ ENTRY(cpu_arm926_proc_fin) | |||
65 | bic r0, r0, #0x1000 @ ...i............ | 65 | bic r0, r0, #0x1000 @ ...i............ |
66 | bic r0, r0, #0x000e @ ............wca. | 66 | bic r0, r0, #0x000e @ ............wca. |
67 | mcr p15, 0, r0, c1, c0, 0 @ disable caches | 67 | mcr p15, 0, r0, c1, c0, 0 @ disable caches |
68 | mov pc, lr | 68 | ret lr |
69 | 69 | ||
70 | /* | 70 | /* |
71 | * cpu_arm926_reset(loc) | 71 | * cpu_arm926_reset(loc) |
@@ -89,7 +89,7 @@ ENTRY(cpu_arm926_reset) | |||
89 | bic ip, ip, #0x000f @ ............wcam | 89 | bic ip, ip, #0x000f @ ............wcam |
90 | bic ip, ip, #0x1100 @ ...i...s........ | 90 | bic ip, ip, #0x1100 @ ...i...s........ |
91 | mcr p15, 0, ip, c1, c0, 0 @ ctrl register | 91 | mcr p15, 0, ip, c1, c0, 0 @ ctrl register |
92 | mov pc, r0 | 92 | ret r0 |
93 | ENDPROC(cpu_arm926_reset) | 93 | ENDPROC(cpu_arm926_reset) |
94 | .popsection | 94 | .popsection |
95 | 95 | ||
@@ -111,7 +111,7 @@ ENTRY(cpu_arm926_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 | mcr p15, 0, r1, c1, c0, 0 @ Restore ICache enable | 112 | mcr p15, 0, r1, c1, c0, 0 @ Restore ICache enable |
113 | msr cpsr_c, r3 @ Restore FIQ state | 113 | msr cpsr_c, r3 @ Restore FIQ state |
114 | mov pc, lr | 114 | ret lr |
115 | 115 | ||
116 | /* | 116 | /* |
117 | * flush_icache_all() | 117 | * flush_icache_all() |
@@ -121,7 +121,7 @@ ENTRY(cpu_arm926_do_idle) | |||
121 | ENTRY(arm926_flush_icache_all) | 121 | ENTRY(arm926_flush_icache_all) |
122 | mov r0, #0 | 122 | mov r0, #0 |
123 | mcr p15, 0, r0, c7, c5, 0 @ invalidate I cache | 123 | mcr p15, 0, r0, c7, c5, 0 @ invalidate I cache |
124 | mov pc, lr | 124 | ret lr |
125 | ENDPROC(arm926_flush_icache_all) | 125 | ENDPROC(arm926_flush_icache_all) |
126 | 126 | ||
127 | /* | 127 | /* |
@@ -151,7 +151,7 @@ __flush_whole_cache: | |||
151 | tst r2, #VM_EXEC | 151 | tst r2, #VM_EXEC |
152 | mcrne p15, 0, ip, c7, c5, 0 @ invalidate I cache | 152 | mcrne p15, 0, ip, c7, c5, 0 @ invalidate I cache |
153 | mcrne p15, 0, ip, c7, c10, 4 @ drain WB | 153 | mcrne p15, 0, ip, c7, c10, 4 @ drain WB |
154 | mov pc, lr | 154 | ret lr |
155 | 155 | ||
156 | /* | 156 | /* |
157 | * flush_user_cache_range(start, end, flags) | 157 | * flush_user_cache_range(start, end, flags) |
@@ -188,7 +188,7 @@ ENTRY(arm926_flush_user_cache_range) | |||
188 | blo 1b | 188 | blo 1b |
189 | tst r2, #VM_EXEC | 189 | tst r2, #VM_EXEC |
190 | mcrne p15, 0, ip, c7, c10, 4 @ drain WB | 190 | mcrne p15, 0, ip, c7, c10, 4 @ drain WB |
191 | mov pc, lr | 191 | ret lr |
192 | 192 | ||
193 | /* | 193 | /* |
194 | * coherent_kern_range(start, end) | 194 | * coherent_kern_range(start, end) |
@@ -222,7 +222,7 @@ ENTRY(arm926_coherent_user_range) | |||
222 | blo 1b | 222 | blo 1b |
223 | mcr p15, 0, r0, c7, c10, 4 @ drain WB | 223 | mcr p15, 0, r0, c7, c10, 4 @ drain WB |
224 | mov r0, #0 | 224 | mov r0, #0 |
225 | mov pc, lr | 225 | ret lr |
226 | 226 | ||
227 | /* | 227 | /* |
228 | * flush_kern_dcache_area(void *addr, size_t size) | 228 | * flush_kern_dcache_area(void *addr, size_t size) |
@@ -242,7 +242,7 @@ ENTRY(arm926_flush_kern_dcache_area) | |||
242 | mov r0, #0 | 242 | mov r0, #0 |
243 | mcr p15, 0, r0, c7, c5, 0 @ invalidate I cache | 243 | mcr p15, 0, r0, c7, c5, 0 @ invalidate I cache |
244 | mcr p15, 0, r0, c7, c10, 4 @ drain WB | 244 | mcr p15, 0, r0, c7, c10, 4 @ drain WB |
245 | mov pc, lr | 245 | ret lr |
246 | 246 | ||
247 | /* | 247 | /* |
248 | * dma_inv_range(start, end) | 248 | * dma_inv_range(start, end) |
@@ -270,7 +270,7 @@ arm926_dma_inv_range: | |||
270 | cmp r0, r1 | 270 | cmp r0, r1 |
271 | blo 1b | 271 | blo 1b |
272 | mcr p15, 0, r0, c7, c10, 4 @ drain WB | 272 | mcr p15, 0, r0, c7, c10, 4 @ drain WB |
273 | mov pc, lr | 273 | ret lr |
274 | 274 | ||
275 | /* | 275 | /* |
276 | * dma_clean_range(start, end) | 276 | * dma_clean_range(start, end) |
@@ -291,7 +291,7 @@ arm926_dma_clean_range: | |||
291 | blo 1b | 291 | blo 1b |
292 | #endif | 292 | #endif |
293 | mcr p15, 0, r0, c7, c10, 4 @ drain WB | 293 | mcr p15, 0, r0, c7, c10, 4 @ drain WB |
294 | mov pc, lr | 294 | ret lr |
295 | 295 | ||
296 | /* | 296 | /* |
297 | * dma_flush_range(start, end) | 297 | * dma_flush_range(start, end) |
@@ -313,7 +313,7 @@ ENTRY(arm926_dma_flush_range) | |||
313 | cmp r0, r1 | 313 | cmp r0, r1 |
314 | blo 1b | 314 | blo 1b |
315 | mcr p15, 0, r0, c7, c10, 4 @ drain WB | 315 | mcr p15, 0, r0, c7, c10, 4 @ drain WB |
316 | mov pc, lr | 316 | ret lr |
317 | 317 | ||
318 | /* | 318 | /* |
319 | * dma_map_area(start, size, dir) | 319 | * dma_map_area(start, size, dir) |
@@ -336,7 +336,7 @@ ENDPROC(arm926_dma_map_area) | |||
336 | * - dir - DMA direction | 336 | * - dir - DMA direction |
337 | */ | 337 | */ |
338 | ENTRY(arm926_dma_unmap_area) | 338 | ENTRY(arm926_dma_unmap_area) |
339 | mov pc, lr | 339 | ret lr |
340 | ENDPROC(arm926_dma_unmap_area) | 340 | ENDPROC(arm926_dma_unmap_area) |
341 | 341 | ||
342 | .globl arm926_flush_kern_cache_louis | 342 | .globl arm926_flush_kern_cache_louis |
@@ -353,7 +353,7 @@ ENTRY(cpu_arm926_dcache_clean_area) | |||
353 | bhi 1b | 353 | bhi 1b |
354 | #endif | 354 | #endif |
355 | mcr p15, 0, r0, c7, c10, 4 @ drain WB | 355 | mcr p15, 0, r0, c7, c10, 4 @ drain WB |
356 | mov pc, lr | 356 | ret lr |
357 | 357 | ||
358 | /* =============================== PageTable ============================== */ | 358 | /* =============================== PageTable ============================== */ |
359 | 359 | ||
@@ -380,7 +380,7 @@ ENTRY(cpu_arm926_switch_mm) | |||
380 | mcr p15, 0, r0, c2, c0, 0 @ load page table pointer | 380 | mcr p15, 0, r0, c2, c0, 0 @ load page table pointer |
381 | mcr p15, 0, ip, c8, c7, 0 @ invalidate I & D TLBs | 381 | mcr p15, 0, ip, c8, c7, 0 @ invalidate I & D TLBs |
382 | #endif | 382 | #endif |
383 | mov pc, lr | 383 | ret lr |
384 | 384 | ||
385 | /* | 385 | /* |
386 | * cpu_arm926_set_pte_ext(ptep, pte, ext) | 386 | * cpu_arm926_set_pte_ext(ptep, pte, ext) |
@@ -397,7 +397,7 @@ ENTRY(cpu_arm926_set_pte_ext) | |||
397 | #endif | 397 | #endif |
398 | mcr p15, 0, r0, c7, c10, 4 @ drain WB | 398 | mcr p15, 0, r0, c7, c10, 4 @ drain WB |
399 | #endif | 399 | #endif |
400 | mov pc, lr | 400 | ret lr |
401 | 401 | ||
402 | /* Suspend/resume support: taken from arch/arm/plat-s3c24xx/sleep.S */ | 402 | /* Suspend/resume support: taken from arch/arm/plat-s3c24xx/sleep.S */ |
403 | .globl cpu_arm926_suspend_size | 403 | .globl cpu_arm926_suspend_size |
@@ -448,7 +448,7 @@ __arm926_setup: | |||
448 | #ifdef CONFIG_CPU_CACHE_ROUND_ROBIN | 448 | #ifdef CONFIG_CPU_CACHE_ROUND_ROBIN |
449 | orr r0, r0, #0x4000 @ .1.. .... .... .... | 449 | orr r0, r0, #0x4000 @ .1.. .... .... .... |
450 | #endif | 450 | #endif |
451 | mov pc, lr | 451 | ret lr |
452 | .size __arm926_setup, . - __arm926_setup | 452 | .size __arm926_setup, . - __arm926_setup |
453 | 453 | ||
454 | /* | 454 | /* |