forked from len0rd/rockbox
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
This commit is contained in:
parent
fe7ca44471
commit
45c7498f59
39 changed files with 170 additions and 109 deletions
|
|
@ -97,7 +97,7 @@ lcd_write_data_shifted:
|
|||
subs r1, r1, #1
|
||||
bne .sloop
|
||||
|
||||
ldmfd sp!, {r4, pc}
|
||||
ldmpc regs=r4
|
||||
.size lcd_write_data_shifted,.-lcd_write_data_shifted
|
||||
|
||||
#elif defined IPOD_MINI
|
||||
|
|
@ -132,7 +132,7 @@ lcd_write_data_shifted:
|
|||
subs r1, r1, #1
|
||||
bne .sloop
|
||||
|
||||
ldr pc, [sp], #4
|
||||
ldrpc
|
||||
.size lcd_write_data_shifted,.-lcd_write_data_shifted
|
||||
|
||||
#endif
|
||||
|
|
@ -179,7 +179,7 @@ lcd_mono_data:
|
|||
subs r1, r1, #1
|
||||
bne .mloop
|
||||
|
||||
ldmfd sp!, {r4, pc}
|
||||
ldmpc regs=r4
|
||||
|
||||
.dibits:
|
||||
.byte 0x00, 0x03, 0x0C, 0x0F, 0x30, 0x33, 0x3C, 0x3F
|
||||
|
|
@ -267,6 +267,6 @@ lcd_grey_data:
|
|||
subs r2, r2, #1
|
||||
bne .greyloop
|
||||
|
||||
ldmfd sp!, {r4-r7, pc}
|
||||
ldmpc regs=r4-r7
|
||||
.size lcd_grey_data,.-lcd_grey_data
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue