mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-06-24 05:18:30 +00:00
Initial import
This commit is contained in:
commit
c91b3c5006
14915 changed files with 590219 additions and 0 deletions
14
libc/nt/KernelBase/GetCurrentThread.s
Normal file
14
libc/nt/KernelBase/GetCurrentThread.s
Normal file
|
@ -0,0 +1,14 @@
|
|||
.include "o/libc/nt/codegen.inc"
|
||||
.imp KernelBase,__imp_GetCurrentThread,GetCurrentThread,505
|
||||
|
||||
.text.windows
|
||||
GetCurrentThread:
|
||||
push %rbp
|
||||
mov %rsp,%rbp
|
||||
.profilable
|
||||
sub $32,%rsp
|
||||
call *__imp_GetCurrentThread(%rip)
|
||||
leave
|
||||
ret
|
||||
.endfn GetCurrentThread,globl
|
||||
.previous
|
Loading…
Add table
Add a link
Reference in a new issue