cosmopolitan/libc/nt/kernel32/GetThreadContext.S

19 lines
327 B
ArmAsm
Raw Normal View History

#include "libc/nt/codegen.h"
.imp kernel32,__imp_GetThreadContext,GetThreadContext
.text.windows
2024-01-29 05:57:40 +00:00
.ftrace1
GetThreadContext:
2024-01-29 05:57:40 +00:00
.ftrace2
#ifdef __x86_64__
push %rbp
mov %rsp,%rbp
mov __imp_GetThreadContext(%rip),%rax
jmp __sysv2nt
#elif defined(__aarch64__)
mov x0,#0
ret
#endif
.endfn GetThreadContext,globl
.previous