From 6846ecbcc008d1a3b8a1067a9d55924b96209b9e Mon Sep 17 00:00:00 2001 From: gil Date: Thu, 16 May 2024 00:36:19 -0500 Subject: [PATCH] Print hartid after hello world --- src/main.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/main.rs b/src/main.rs index 92164f2..b870494 100644 --- a/src/main.rs +++ b/src/main.rs @@ -63,6 +63,8 @@ extern "C" fn start() -> ! { unsafe { uart::init_console(0x1000_0000) }; println!("Hello, world!"); + println!("hartid: {}", riscv::register::mhartid::read()); + loop { let c = uart::CONSOLE.lock().as_mut().and_then(uart::Device::get); if let Some(c) = c {