From 3a62f65cd1a8d5108c4c2d718cc2b6aea872e246 Mon Sep 17 00:00:00 2001 From: able Date: Fri, 14 Jul 2023 20:00:50 -0500 Subject: [PATCH] ARM: Whoe knows --- kernel/.cargo/config.toml | 3 ++- kernel/src/arch/aarch64/mod.rs | 12 +++--------- 2 files changed, 5 insertions(+), 10 deletions(-) diff --git a/kernel/.cargo/config.toml b/kernel/.cargo/config.toml index 5e82bd2..8b608a1 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 825d19c..1d9ffb2 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 {} }