summaryrefslogtreecommitdiff
path: root/apps/codecs/lib/mdct_arm.S
diff options
context:
space:
mode:
authorRafaël Carré <rafael.carre@gmail.com>2010-06-11 04:41:36 +0000
committerRafaël Carré <rafael.carre@gmail.com>2010-06-11 04:41:36 +0000
commit45c7498f59ad2889f2120a865a51043004eddd5d (patch)
tree1a62b0e8549a7f2750679de8d7dd3f82039c5719 /apps/codecs/lib/mdct_arm.S
parentfe7ca44471b309a0adea563cce947de9efb62ab5 (diff)
downloadrockbox-45c7498f59ad2889f2120a865a51043004eddd5d.tar.gz
rockbox-45c7498f59ad2889f2120a865a51043004eddd5d.zip
FS#11335 by me: make ARM assembly functions thumb-friendly
We can't pop into pc on ARMv4t when using thumb: the T bit won't be modified if we are returning to a thumb function Code running on ARMv4t should use the new ldrpc / ldmpc macros instead of ldr pc, [sp], #4 and ldm(cond) sp!, {regs, pc} No modification on pure ARM builds and ARMv5+ Note: USE_THUMB is currently never defined, no targets can currently be built with -mthumb, see FS#6734 git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26756 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/codecs/lib/mdct_arm.S')
-rw-r--r--apps/codecs/lib/mdct_arm.S6
1 files changed, 3 insertions, 3 deletions
diff --git a/apps/codecs/lib/mdct_arm.S b/apps/codecs/lib/mdct_arm.S
index f2fa1d9c3e..515b859b44 100644
--- a/apps/codecs/lib/mdct_arm.S
+++ b/apps/codecs/lib/mdct_arm.S
@@ -127,7 +127,7 @@ mdct_butterfly_16:
127 @ mdct_butterfly_8 increments r0 by another #8*4 here 127 @ mdct_butterfly_8 increments r0 by another #8*4 here
128 @ at end, r0 has been incremented by #16*4 128 @ at end, r0 has been incremented by #16*4
129 129
130 ldr pc, [sp], #4 130 ldrpc
131 131
132mdct_butterfly_32: 132mdct_butterfly_32:
133 stmdb sp!, {r4-r11, lr} 133 stmdb sp!, {r4-r11, lr}
@@ -257,7 +257,7 @@ mdct_butterfly_32:
257 @ and we wanted to advance by #16*4 anyway, so just call again 257 @ and we wanted to advance by #16*4 anyway, so just call again
258 bl mdct_butterfly_16 258 bl mdct_butterfly_16
259 259
260 ldmia sp!, {r4-r11, pc} 260 ldmpc regs=r4-r11
261 261
262 @ mdct_butterfly_generic_loop(x1, x2, T0, step, Ttop) 262 @ mdct_butterfly_generic_loop(x1, x2, T0, step, Ttop)
263mdct_butterfly_generic_loop: 263mdct_butterfly_generic_loop:
@@ -433,5 +433,5 @@ mdct_butterfly_generic_loop:
433 cmp r2, r4 433 cmp r2, r4
434 bhi 1b 434 bhi 1b
435 435
436 ldmia sp!, {r4-r11, pc} 436 ldmpc regs=r4-r11
437 437