cosmopolitan/libc/nt/kernel32/TerminateProcess.S
2023-05-10 04:20:46 -07:00

14 lines
283 B
ArmAsm

#include "libc/nt/codegen.h"
.imp kernel32,__imp_TerminateProcess,TerminateProcess,0
#ifdef __x86_64__
.text.windows
__TerminateProcess:
push %rbp
mov %rsp,%rbp
.profilable
mov __imp_TerminateProcess(%rip),%rax
jmp __sysv2nt
.endfn __TerminateProcess,globl
.previous
#endif