Introduce FreeBSD ARM64 support

It's 100% passing test fleet. Solid as a rock.
This commit is contained in:
Justine Tunney 2023-12-29 20:11:23 -08:00
parent 43fe5956ad
commit 83107f78ed
No known key found for this signature in database
GPG key ID: BE714B4575D6E328
455 changed files with 778 additions and 551 deletions

View file

@ -164,6 +164,7 @@ __funline void *__memset(void *a, int c, unsigned long n) {
char *d = a;
unsigned long i;
for (i = 0; i < n; ++i) {
__asm__ volatile("" ::: "memory");
d[i] = c;
}
return d;
@ -174,6 +175,7 @@ __funline void *__memcpy(void *a, const void *b, unsigned long n) {
unsigned long i;
const char *s = b;
for (i = 0; i < n; ++i) {
__asm__ volatile("" ::: "memory");
d[i] = s[i];
}
return d;
@ -185,10 +187,12 @@ __funline void *__memmove(void *a, const void *b, unsigned long n) {
const char *s = b;
if (d > s) {
for (i = n; i--;) {
__asm__ volatile("" ::: "memory");
d[i] = s[i];
}
} else {
for (i = 0; i < n; ++i) {
__asm__ volatile("" ::: "memory");
d[i] = s[i];
}
}

View file

@ -221,7 +221,7 @@ static relegated void __oncrash_impl(int sig, struct siginfo *si,
Append(b, "%serror%s: Uncaught %G (%s) on %s pid %d tid %d\n", strong, reset,
sig, kind, host, getpid(), gettid());
if (program_invocation_name) {
Append(b, " %s\n", program_invocation_name);
Append(b, " %s\n", __program_executable_name);
}
if (errno) {
Append(b, " %s\n", strerror(errno));