diff options
Diffstat (limited to 'libc-top-half/musl/src/thread/s390x/__tls_get_offset.s')
-rw-r--r-- | libc-top-half/musl/src/thread/s390x/__tls_get_offset.s | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/libc-top-half/musl/src/thread/s390x/__tls_get_offset.s b/libc-top-half/musl/src/thread/s390x/__tls_get_offset.s new file mode 100644 index 0000000..8ee92de --- /dev/null +++ b/libc-top-half/musl/src/thread/s390x/__tls_get_offset.s @@ -0,0 +1,17 @@ + .global __tls_get_offset + .type __tls_get_offset,%function +__tls_get_offset: + stmg %r14, %r15, 112(%r15) + aghi %r15, -160 + + la %r2, 0(%r2, %r12) + brasl %r14, __tls_get_addr + + ear %r1, %a0 + sllg %r1, %r1, 32 + ear %r1, %a1 + + sgr %r2, %r1 + + lmg %r14, %r15, 272(%r15) + br %r14 |