mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-02-07 06:53:33 +00:00
The new asynchronous signal delivery technique is now also being used for tkill(), raise(), etc. Many subtle issues have been addresesd. We now signal handling on Windows that's remarkably similar to the POSIX behaviors. However that's just across threads. We're lacking a way to have the signal semantics work well, across multiple WIN32 processes.
18 lines
341 B
ArmAsm
18 lines
341 B
ArmAsm
#include "libc/nt/codegen.h"
|
|
.imp kernel32,__imp_SetThreadContext,SetThreadContext
|
|
|
|
.text.windows
|
|
.ftrace1
|
|
SetThreadContext:
|
|
.ftrace2
|
|
#ifdef __x86_64__
|
|
push %rbp
|
|
mov %rsp,%rbp
|
|
mov __imp_SetThreadContext(%rip),%rax
|
|
jmp __sysv2nt
|
|
#elif defined(__aarch64__)
|
|
mov x0,#0
|
|
ret
|
|
#endif
|
|
.endfn SetThreadContext,globl
|
|
.previous
|