diff --git a/kernel/.cargo/config.toml b/kernel/.cargo/config.toml index 5e82bd2d1..8b608a110 100644 --- a/kernel/.cargo/config.toml +++ b/kernel/.cargo/config.toml @@ -3,7 +3,8 @@ build-std = ["core", "compiler_builtins", "alloc"] build-std-features = ["compiler-builtins-mem"] [build] -target = "./targets/x86_64-ableos.json" +# target = "./targets/x86_64-ableos.json" +target = "./targets/aarch64-virt-ableos.json" [target.'cfg(target_arch = "x86_64")'] rustflags = ["-C", "target-feature=+rdrand"] diff --git a/kernel/src/arch/aarch64/mod.rs b/kernel/src/arch/aarch64/mod.rs index 825d19c6e..1d9ffb22b 100644 --- a/kernel/src/arch/aarch64/mod.rs +++ b/kernel/src/arch/aarch64/mod.rs @@ -1,15 +1,9 @@ //! -use core::ptr; + +use limine::{TerminalRequest, TerminalResponse}; + #[no_mangle] unsafe extern "C" fn _kernel_start() -> ! { - const UART0: *mut u8 = 0x0900_0000 as *mut u8; - let out_str = b"AArch64 Bare Metal"; - for byte in out_str { - unsafe { - ptr::write_volatile(UART0, *byte); - } - } - loop {} }