mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-07-06 03:08:31 +00:00
Introduce FreeBSD ARM64 support
It's 100% passing test fleet. Solid as a rock.
This commit is contained in:
parent
43fe5956ad
commit
83107f78ed
455 changed files with 778 additions and 551 deletions
|
@ -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];
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue