lib: c: add pthread implementation
This commit is contained in:
13
lib/libc/pthread/sys/x86_64/pthread_self.S
Normal file
13
lib/libc/pthread/sys/x86_64/pthread_self.S
Normal file
@@ -0,0 +1,13 @@
|
||||
.code64
|
||||
|
||||
.global pthread_self
|
||||
.type pthread_self, @function
|
||||
|
||||
pthread_self:
|
||||
push %rbp
|
||||
mov %rsp, %rbp
|
||||
|
||||
mov %gs:0, %rax
|
||||
|
||||
pop %rbp
|
||||
ret
|
||||
Reference in New Issue
Block a user