Displaying 2 results from an estimated 2 matches for "__aeabi_read_tp".
2007 Apr 11
2
[LLVMdev] ideas for TLS implementation
..., %object
.size a, 4
a:
.word 1
.text
.align 2
.global f
.type f, %function
f:
@ args = 0, pretend = 0, frame = 0
@ frame_needed = 0, uses_anonymous_args = 0
str lr, [sp, #-4]!
ldr r3, .L2
bl __aeabi_read_tp @ load_tp_soft <== get thread pointer
(abi dependent)
ldr r0, [r0, r3]
ldr pc, [sp], #4
.L3:
.align 2
.L2:
.word a(tpoff) <== offset of "a"
.size f, .-f
The idea of implementing TLS is to create the "thread_local" ke...
2007 Apr 11
0
[LLVMdev] ideas for TLS implementation
...1
> .text
> .align 2
> .global f
> .type f, %function
> f:
> @ args = 0, pretend = 0, frame = 0
> @ frame_needed = 0, uses_anonymous_args = 0
> str lr, [sp, #-4]!
> ldr r3, .L2
> bl __aeabi_read_tp @ load_tp_soft <== get thread pointer
> (abi dependent)
> ldr r0, [r0, r3]
> ldr pc, [sp], #4
> .L3:
> .align 2
> .L2:
> .word a(tpoff) <== offset of "a"
> .size f, .-f
>
>
> The idea of implem...