cosmopolitan/libc/nt/kernel32/TerminateThread.s
Justine Tunney fec396037a Get threads working on all platforms
We now have a high-quality clone() implementation for creating
lightweight threads on Linux/Windows/FreeBSD/NetBSD/OpenBSD.
2022-05-13 03:59:09 -07:00

12 lines
253 B
ArmAsm

.include "o/libc/nt/codegen.inc"
.imp kernel32,__imp_TerminateThread,TerminateThread,0
.text.windows
TerminateThread:
push %rbp
mov %rsp,%rbp
.profilable
mov __imp_TerminateThread(%rip),%rax
jmp __sysv2nt
.endfn TerminateThread,globl
.previous