Compare commits

..

No commits in common. "6846ecbcc008d1a3b8a1067a9d55924b96209b9e" and "7d658ad704cdab7b23ea6c067ef2442a819f8572" have entirely different histories.

3 changed files with 0 additions and 26 deletions

23
Cargo.lock generated
View file

@ -8,24 +8,11 @@ version = "1.3.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "0c4b4d0bd25bd0b74681c0ad21497610ce1b7c91b1022cd21c80c6fbdd9476b0"
[[package]]
name = "critical-section"
version = "1.1.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "7059fff8937831a9ae6f0fe4d658ffabf58f2ca96aa9dec1c889f936f705f216"
[[package]]
name = "embedded-hal"
version = "1.0.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "361a90feb7004eca4019fb28352a9465666b24f840f5c3cddf0ff13920590b89"
[[package]]
name = "kernel"
version = "0.1.0"
dependencies = [
"linked_list_allocator",
"riscv",
"spinning_top 0.3.0",
]
@ -48,16 +35,6 @@ dependencies = [
"scopeguard",
]
[[package]]
name = "riscv"
version = "0.11.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "2f5c1b8bf41ea746266cdee443d1d1e9125c86ce1447e1a2615abd34330d33a9"
dependencies = [
"critical-section",
"embedded-hal",
]
[[package]]
name = "scopeguard"
version = "1.2.0"

View file

@ -5,5 +5,4 @@ edition = "2021"
[dependencies]
linked_list_allocator = "0.10.5"
riscv = "0.11.1"
spinning_top = "0.3.0"

View file

@ -63,8 +63,6 @@ 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 {