musl-tcc/src/thread/i386/tls.s

10 lines
159 B
ArmAsm
Raw Permalink Normal View History

2022-03-20 08:48:53 +00:00
.text
.global ___tls_get_addr
.type ___tls_get_addr,@function
___tls_get_addr:
mov %gs:4,%edx
mov (%eax),%ecx
mov 4(%eax),%eax
add (%edx,%ecx,4),%eax
ret