Improve aarch64 native support some more

This change introduces partial support for automating remote testing of
aarch64 binaries on Raspberry Pi and Apple Silicon.
This commit is contained in:
Justine Tunney 2023-06-04 08:19:45 -07:00
parent fc34ba2596
commit 4aa1d09b9e
No known key found for this signature in database
GPG key ID: BE714B4575D6E328
20 changed files with 185 additions and 82 deletions

View file

@ -18,7 +18,9 @@
*/
#include "libc/calls/calls.h"
#include "libc/calls/struct/sigaction.h"
#include "libc/dce.h"
#include "libc/errno.h"
#include "libc/stdio/stdio.h"
#include "libc/sysv/consts/sig.h"
#include "libc/testlib/testlib.h"
#include "libc/thread/thread.h"
@ -26,6 +28,13 @@
int fds[2];
_Thread_local sig_atomic_t gotsig;
void SetUp(void) {
if (IsXnuSilicon()) {
fprintf(stderr, "TODO(jart): Get pthread_kill() working on XNU silicon\n");
exit(0);
}
}
void OnSig(int sig) {
gotsig = 1;
}