mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-02-01 03:53:33 +00:00
fec396037a
We now have a high-quality clone() implementation for creating lightweight threads on Linux/Windows/FreeBSD/NetBSD/OpenBSD.
12 lines
253 B
ArmAsm
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
|