mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-01-31 19:43:32 +00:00
cdf556e7d2
GNU Make on Windows now appears to be working reliably. This change also fixes a bug where, after fork the Windows thread handle wasn't reset and that caused undefined behavior using SetThreadContext() with our signals
18 lines
323 B
ArmAsm
18 lines
323 B
ArmAsm
#include "libc/nt/codegen.h"
|
|
.imp psapi,__imp_EnumProcesses,EnumProcesses
|
|
|
|
.text.windows
|
|
.ftrace1
|
|
EnumProcesses:
|
|
.ftrace2
|
|
#ifdef __x86_64__
|
|
push %rbp
|
|
mov %rsp,%rbp
|
|
mov __imp_EnumProcesses(%rip),%rax
|
|
jmp __sysv2nt
|
|
#elif defined(__aarch64__)
|
|
mov x0,#0
|
|
ret
|
|
#endif
|
|
.endfn EnumProcesses,globl
|
|
.previous
|