diff options
Diffstat (limited to 'kernel/src/lib.rs')
-rw-r--r-- | kernel/src/lib.rs | 15 |
1 files changed, 9 insertions, 6 deletions
diff --git a/kernel/src/lib.rs b/kernel/src/lib.rs index bd5a19f..4a2483a 100644 --- a/kernel/src/lib.rs +++ b/kernel/src/lib.rs @@ -1,16 +1,19 @@ #![no_std] +pub mod console; +pub mod util; + +#[cfg(not(test))] mod panic; /// The entrypoint to the kernel. This should be executed by hart0 alone. It performs some early /// boot tasks, then wakes up any other harts. #[no_mangle] -pub extern "C" fn hart0_boot() { - for byte in "Hello, world!\n".bytes() { - unsafe { - core::ptr::write_volatile(0x10000000 as *mut u8, byte); - } - } +pub extern "C" fn hart0_boot(device_tree: *const u32) { + console::init(); + + log::info!("device_tree = {device_tree:?}"); + dbg!(42); todo!() } |