Commit 95cd440a authored by Janne Grunau's avatar Janne Grunau

arm: fix movrel macro for thumb

parent f1b756ef
Pipeline #4257 passed with stages
in 6 minutes and 48 seconds
......@@ -37,8 +37,7 @@
ldr \rd, 1f
b 2f
1:
@ FIXME: thumb
.word 3f - (2f + 8)
.word 3f - (2f + 8 - 4 * CONFIG_THUMB)
2:
ldr \rd, [pc, \rd]
.if \offset < 0
......@@ -55,8 +54,7 @@
ldr \rd, 1f
b 2f
1:
@ FIXME: thumb
.word \val + \offset - (2f + 8)
.word \val + \offset - (2f + 8 - 4 * CONFIG_THUMB)
2:
add \rd, \rd, pc
#else
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment