Print hartid after hello world
This commit is contained in:
parent
1644d5a068
commit
6846ecbcc0
|
@ -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 {
|
||||
|
|
Loading…
Reference in a new issue