summaryrefslogtreecommitdiff
path: root/src/thread/arm/__aeabi_read_tp.s
diff options
context:
space:
mode:
Diffstat (limited to 'src/thread/arm/__aeabi_read_tp.s')
-rw-r--r--src/thread/arm/__aeabi_read_tp.s10
1 files changed, 6 insertions, 4 deletions
diff --git a/src/thread/arm/__aeabi_read_tp.s b/src/thread/arm/__aeabi_read_tp.s
index 9d0cd311..2585620c 100644
--- a/src/thread/arm/__aeabi_read_tp.s
+++ b/src/thread/arm/__aeabi_read_tp.s
@@ -2,7 +2,9 @@
.global __aeabi_read_tp
.type __aeabi_read_tp,%function
__aeabi_read_tp:
- push {r1,r2,r3,lr}
- bl __aeabi_read_tp_c
- pop {r1,r2,r3,lr}
- bx lr
+ ldr r0,1f
+ add r0,r0,pc
+ ldr r0,[r0]
+2: bx r0
+ .align 2
+1: .word __a_gettp_ptr - 2b