xref: /aosp_15_r20/external/musl/src/thread/i386/tls.s (revision c9945492fdd68bbe62686c5b452b4dc1be3f8453)
1*c9945492SAndroid Build Coastguard Worker.text
2*c9945492SAndroid Build Coastguard Worker.global ___tls_get_addr
3*c9945492SAndroid Build Coastguard Worker.type ___tls_get_addr,@function
4*c9945492SAndroid Build Coastguard Worker___tls_get_addr:
5*c9945492SAndroid Build Coastguard Worker	mov %gs:4,%edx
6*c9945492SAndroid Build Coastguard Worker	mov (%eax),%ecx
7*c9945492SAndroid Build Coastguard Worker	mov 4(%eax),%eax
8*c9945492SAndroid Build Coastguard Worker	add (%edx,%ecx,4),%eax
9*c9945492SAndroid Build Coastguard Worker	ret
10