cosmopolitan/libc/nt/kernel32/ExitThread.s
Justine Tunney 7166679620 Fix bugs and add security features to redbean
- Fix a regression with the previous change that broke redbean
- Add chroot(), resource limit, seccomp, and other stuff to redbean
- Write lots and lots of documentation
- Iron out more system call issues
2022-04-18 00:01:26 -07:00

15 lines
251 B
ArmAsm

.include "o/libc/nt/codegen.inc"
.imp kernel32,__imp_ExitThread,ExitThread,0
.text.windows
ExitThread:
push %rbp
mov %rsp,%rbp
.profilable
mov %rdi,%rcx
sub $32,%rsp
call *__imp_ExitThread(%rip)
leave
ret
.endfn ExitThread,globl
.previous