mirror of
https://github.com/XunilGroup/XunilOS.git
synced 2026-06-02 12:44:24 +02:00
Improve aarch64 support by building everything for both archictectures,
remove incorrect timer frequency set, fix interrupt handler not restoring stack ptr, handle both user and kernel aborts, remove aarch64 ps2 support, fix ELF code mapped as code making it unwritable, add assets.rs to handle both arches automatically, make PS2 x86_64 compatible with linux keycodes, always try printing kernel panic to serial
This commit is contained in:
+1
-1
Submodule user/apps/doomgeneric updated: 2c34740743...6ce96f770e
@@ -1,3 +1,15 @@
|
||||
GCC_INCLUDES=$(gcc -print-file-name=include)
|
||||
SYS_INCLUDES=/usr/include
|
||||
gcc -w -static -D__NO_INLINE__ -O0 -mno-mmx -mno-avx -fno-stack-protector -fno-inline -fno-inline-small-functions -fno-indirect-inlining -fno-builtin -fcompare-debug-second -nostdlib -nostdinc helloworld.c -Wl,--gc-sections -L../../libxunil/target/release -l:libxunil.a -I../../libxunil/include -I"$GCC_INCLUDES" -I"$SYS_INCLUDES" -o ../../../assets/helloworld.elf
|
||||
|
||||
if [ "$KARCH" = "aarch64" ]; then
|
||||
CC="aarch64-linux-gnu-gcc"
|
||||
ARCH_FLAGS="-march=armv8-a+nosimd -mabi=lp64"
|
||||
elif [ "$KARCH" = "x86_64" ]; then
|
||||
CC="x86_64-linux-gnu-gcc"
|
||||
ARCH_FLAGS="-m64 -mno-mmx -mno-avx"
|
||||
else
|
||||
echo "Error: Unsupported KARCH: $KARCH"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
$CC -w -static -D__NO_INLINE__ -O3 $ARCH_FLAGS -fno-stack-protector -fno-inline -fno-inline-small-functions -fno-indirect-inlining -fno-builtin -fcompare-debug-second -nostdlib -nostdinc helloworld.c -Wl,--gc-sections -L../../libxunil/target/$KARCH-unknown-none/release -l:libxunil.a -I../../libxunil/include -I"$GCC_INCLUDES" -I"$SYS_INCLUDES" -o ../../../assets/$KARCH/helloworld.elf
|
||||
|
||||
+1
-1
Submodule user/init updated: 601d2cab7f...417af31481
+1
-1
Submodule user/libxunil updated: 7ddebd6df5...6025f75ab3
Reference in New Issue
Block a user