diff options
author | Janne Grunau <janne-vlc@jannau.net> | 2019-02-02 16:17:12 +0300 |
---|---|---|
committer | Janne Grunau <janne-vlc@jannau.net> | 2019-02-02 16:47:25 +0300 |
commit | 95cd440a99f9e3a25dffc3a318118030a69354d2 (patch) | |
tree | f487b808b8468302aaf2e330bff0a50944a465ba /src/arm/32/util.S | |
parent | f1b756ef5bdc0bb759b2b140f15362fec024c1ff (diff) |
arm: fix movrel macro for thumb
Diffstat (limited to 'src/arm/32/util.S')
-rw-r--r-- | src/arm/32/util.S | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/arm/32/util.S b/src/arm/32/util.S index 99d16ad..30121ea 100644 --- a/src/arm/32/util.S +++ b/src/arm/32/util.S @@ -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 |