mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-02-12 01:08:00 +00:00
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
359 B
ArmAsm
18 lines
359 B
ArmAsm
#include "libc/nt/codegen.h"
|
|
.imp psapi,__imp_EnumProcessModulesEx,EnumProcessModulesEx
|
|
|
|
.text.windows
|
|
.ftrace1
|
|
EnumProcessModulesEx:
|
|
.ftrace2
|
|
#ifdef __x86_64__
|
|
push %rbp
|
|
mov %rsp,%rbp
|
|
mov __imp_EnumProcessModulesEx(%rip),%rax
|
|
jmp __sysv2nt6
|
|
#elif defined(__aarch64__)
|
|
mov x0,#0
|
|
ret
|
|
#endif
|
|
.endfn EnumProcessModulesEx,globl
|
|
.previous
|