mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-05-28 00:02:28 +00:00
Get setcontext() and getcontext() working on Aarch64
This change also adds the missing code for getting and restoring the thread's signal mask, since that's explicitly listed by the man page
This commit is contained in:
parent
8b62bff364
commit
7ec84655b4
7 changed files with 182 additions and 13 deletions
|
@ -5,6 +5,14 @@
|
|||
#if !(__ASSEMBLER__ + __LINKER__ + 0)
|
||||
COSMOPOLITAN_C_START_
|
||||
|
||||
#ifdef __x86_64__
|
||||
#define SP rsp
|
||||
#elif defined(__aarch64__)
|
||||
#define SP sp
|
||||
#else
|
||||
#error "unsupported architecture"
|
||||
#endif
|
||||
|
||||
void _ntcontext2linux(struct ucontext *, const struct NtContext *) _Hide;
|
||||
void _ntlinux2context(struct NtContext *, const ucontext_t *) _Hide;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue