Files
rosetta/lib/libc/pthread/sys/x86_64/pthread_self.S

14 lines
136 B
ArmAsm

.code64
.global pthread_self
.type pthread_self, @function
pthread_self:
push %rbp
mov %rsp, %rbp
mov %gs:0, %rax
pop %rbp
ret