mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-07-07 19:58:30 +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
|
@ -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"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue