Add siglongjmp() for aarch64

This commit is contained in:
Justine Tunney 2023-09-21 10:10:20 -07:00
parent c88f95a892
commit 22cf6e11eb
No known key found for this signature in database
GPG key ID: BE714B4575D6E328
13 changed files with 34 additions and 49 deletions

View file

@ -8,8 +8,10 @@ COSMOPOLITAN_C_START_
#ifdef __x86_64__
typedef long jmp_buf[8];
typedef long sigjmp_buf[12];
#elif defined(__aarch64__)
typedef long jmp_buf[22];
typedef long sigjmp_buf[26];
#elif defined(__powerpc64__)
typedef unsigned __int128 jmp_buf[32];
#elif defined(__s390x__)
@ -18,8 +20,6 @@ typedef unsigned long jmp_buf[18];
typedef unsigned long jmp_buf[26];
#endif
typedef long sigjmp_buf[12];
void mcount(void);
int daemon(int, int);
unsigned long getauxval(unsigned long);