mirror of
https://github.com/XunilGroup/XunilOS.git
synced 2026-06-02 13:44:25 +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:
@@ -15,6 +15,14 @@ fn main() {
|
||||
)
|
||||
.unwrap();
|
||||
|
||||
let out_dir = out_dir.join("driver").join("io").join("fs");
|
||||
|
||||
fs::write(
|
||||
out_dir.join("assets.rs"),
|
||||
format!("pub static INIT_ELF: &[u8] = include_bytes!(\"../../../../../assets/{karch}/init\");\npub static DOOM_WAD: &[u8] = include_bytes!(\"../../../../../assets/doom1.wad\");\npub static DOOM_ELF: &[u8] = include_bytes!(\"../../../../../assets/{karch}/doomgeneric\");\npub static HELLOWORLD_ELF: &[u8] = include_bytes!(\"../../../../../assets/{karch}/helloworld.elf\");"),
|
||||
)
|
||||
.unwrap();
|
||||
|
||||
println!("cargo:rerun-if-env-changed=KARCH");
|
||||
println!("cargo:rerun-if-env-changed=TIMER_FREQUENCY_HZ");
|
||||
println!("cargo:rerun-if-env-changed=OUTPUT");
|
||||
|
||||
Reference in New Issue
Block a user