cosmopolitan/libc/nt/KernelBase/GetCurrentProcess.s

15 lines
275 B
ArmAsm

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