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:
csd4ni3l
2026-05-22 22:18:42 +02:00
parent 1205d8ce7a
commit 56c5da0742
40 changed files with 393 additions and 301 deletions
+3 -2
View File
@@ -12,7 +12,7 @@ ifeq ($(RUST_TARGET),)
endif
ifeq ($(RUST_PROFILE),)
override RUST_PROFILE := dev
override RUST_PROFILE := release
endif
override RUST_PROFILE_SUBDIR := $(RUST_PROFILE)
@@ -23,7 +23,8 @@ endif
# Default target.
.PHONY: all
all:
RUSTFLAGS="-C relocation-model=static" cargo build --target $(RUST_TARGET) --profile $(RUST_PROFILE)
RUSTFLAGS="-C relocation-model=static" cargo build --target $(RUST_TARGET) --profile $(RUST_PROFILE) --config profile.release.debug=true
cp target/$(RUST_TARGET)/$(RUST_PROFILE_SUBDIR)/$$(cd target/$(RUST_TARGET)/$(RUST_PROFILE_SUBDIR) && find -maxdepth 1 -perm -111 -type f) kernel
# Remove object files and the final executable.