cosmopolitan/libc/nt/KernelBase/GetCurrentProcessId.s

15 lines
285 B
ArmAsm

.include "o/libc/nt/codegen.inc"
.imp KernelBase,__imp_GetCurrentProcessId,GetCurrentProcessId,501
.text.windows
GetCurrentProcessId:
push %rbp
mov %rsp,%rbp
.profilable
sub $32,%rsp
call *__imp_GetCurrentProcessId(%rip)
leave
ret
.endfn GetCurrentProcessId,globl
.previous