diff options
author | Russell King <rmk+kernel@arm.linux.org.uk> | 2014-08-05 05:27:13 -0400 |
---|---|---|
committer | Russell King <rmk+kernel@arm.linux.org.uk> | 2014-08-05 05:27:13 -0400 |
commit | 7109561524dc57b95fd3f9b61547268b9b6db8ed (patch) | |
tree | df08f565b2c616b7e68fe35cd428a8c5ba3bfcb1 /arch/arm/kernel/iwmmxt.S | |
parent | 6bf755db4d5e7ccea61fb17727a183b9bd8945b1 (diff) | |
parent | 3bb70de692f70861f5c5729cd2b870d0104a7cc9 (diff) |
Merge branches 'fixes' and 'misc' into for-next
Conflicts:
arch/arm/kernel/iwmmxt.S
arch/arm/mm/cache-l2x0.c
arch/arm/mm/mmu.c
Diffstat (limited to 'arch/arm/kernel/iwmmxt.S')
-rw-r--r-- | arch/arm/kernel/iwmmxt.S | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/arch/arm/kernel/iwmmxt.S b/arch/arm/kernel/iwmmxt.S index 2b32978ae905..ad58e565fe98 100644 --- a/arch/arm/kernel/iwmmxt.S +++ b/arch/arm/kernel/iwmmxt.S | |||
@@ -100,7 +100,7 @@ ENTRY(iwmmxt_task_enable) | |||
100 | get_thread_info r10 | 100 | get_thread_info r10 |
101 | #endif | 101 | #endif |
102 | 4: dec_preempt_count r10, r3 | 102 | 4: dec_preempt_count r10, r3 |
103 | mov pc, r9 @ normal exit from exception | 103 | ret r9 @ normal exit from exception |
104 | 104 | ||
105 | concan_save: | 105 | concan_save: |
106 | 106 | ||
@@ -144,7 +144,7 @@ concan_dump: | |||
144 | wstrd wR15, [r1, #MMX_WR15] | 144 | wstrd wR15, [r1, #MMX_WR15] |
145 | 145 | ||
146 | 2: teq r0, #0 @ anything to load? | 146 | 2: teq r0, #0 @ anything to load? |
147 | moveq pc, lr @ if not, return | 147 | reteq lr @ if not, return |
148 | 148 | ||
149 | concan_load: | 149 | concan_load: |
150 | 150 | ||
@@ -177,10 +177,10 @@ concan_load: | |||
177 | @ clear CUP/MUP (only if r1 != 0) | 177 | @ clear CUP/MUP (only if r1 != 0) |
178 | teq r1, #0 | 178 | teq r1, #0 |
179 | mov r2, #0 | 179 | mov r2, #0 |
180 | moveq pc, lr | 180 | reteq lr |
181 | 181 | ||
182 | tmcr wCon, r2 | 182 | tmcr wCon, r2 |
183 | mov pc, lr | 183 | ret lr |
184 | 184 | ||
185 | /* | 185 | /* |
186 | * Back up Concan regs to save area and disable access to them | 186 | * Back up Concan regs to save area and disable access to them |
@@ -266,7 +266,7 @@ ENTRY(iwmmxt_task_copy) | |||
266 | mov r3, lr @ preserve return address | 266 | mov r3, lr @ preserve return address |
267 | bl concan_dump | 267 | bl concan_dump |
268 | msr cpsr_c, ip @ restore interrupt mode | 268 | msr cpsr_c, ip @ restore interrupt mode |
269 | mov pc, r3 | 269 | ret r3 |
270 | 270 | ||
271 | /* | 271 | /* |
272 | * Restore Concan state from given memory address | 272 | * Restore Concan state from given memory address |
@@ -302,7 +302,7 @@ ENTRY(iwmmxt_task_restore) | |||
302 | mov r3, lr @ preserve return address | 302 | mov r3, lr @ preserve return address |
303 | bl concan_load | 303 | bl concan_load |
304 | msr cpsr_c, ip @ restore interrupt mode | 304 | msr cpsr_c, ip @ restore interrupt mode |
305 | mov pc, r3 | 305 | ret r3 |
306 | 306 | ||
307 | /* | 307 | /* |
308 | * Concan handling on task switch | 308 | * Concan handling on task switch |
@@ -324,7 +324,7 @@ ENTRY(iwmmxt_task_switch) | |||
324 | add r3, r0, #TI_IWMMXT_STATE @ get next task Concan save area | 324 | add r3, r0, #TI_IWMMXT_STATE @ get next task Concan save area |
325 | ldr r2, [r2] @ get current Concan owner | 325 | ldr r2, [r2] @ get current Concan owner |
326 | teq r2, r3 @ next task owns it? | 326 | teq r2, r3 @ next task owns it? |
327 | movne pc, lr @ no: leave Concan disabled | 327 | retne lr @ no: leave Concan disabled |
328 | 328 | ||
329 | 1: @ flip Concan access | 329 | 1: @ flip Concan access |
330 | XSC(eor r1, r1, #0x3) | 330 | XSC(eor r1, r1, #0x3) |
@@ -351,7 +351,7 @@ ENTRY(iwmmxt_task_release) | |||
351 | eors r0, r0, r1 @ if equal... | 351 | eors r0, r0, r1 @ if equal... |
352 | streq r0, [r3] @ then clear ownership | 352 | streq r0, [r3] @ then clear ownership |
353 | msr cpsr_c, r2 @ restore interrupts | 353 | msr cpsr_c, r2 @ restore interrupts |
354 | mov pc, lr | 354 | ret lr |
355 | 355 | ||
356 | .data | 356 | .data |
357 | concan_owner: | 357 | concan_owner: |