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

@ -32,11 +32,12 @@ scall() {
amd=$2
arm_linux=$(($3 + 0))
arm_xnu=$((($amd & 0xfff000) >> 12))
arm_freebsd=$((($amd & 0x000000fff0000000) >> 28))
if [ $arm_xnu != 4095 ]; then
arm_xnu=$(($arm_xnu & 0xfff))
fi
shift 3
set -- "$name" "$amd" "$arm_linux" "$arm_xnu" "$*"
set -- "$name" "$amd" "$arm_linux" "$arm_xnu" "$arm_freebsd" "$*"
echo "#include \"libc/sysv/macros.internal.h\""
echo ".scall" "$*"
} >"$dir/${1/$/-}.S"