Verified Commit 90339028 authored by Jeremy Soller's avatar Jeremy Soller
Browse files

Better messaging about which timer is used

parent 04cc8a2d
......@@ -37,8 +37,11 @@ unsafe fn init_hpet() -> bool {
}
pub unsafe fn init_noncore() {
if ! init_hpet() {
if init_hpet() {
println!("HPET used as system timer");
} else {
pit::init();
println!("PIT used as system timer");
}
rtc::init();
......
......@@ -14,6 +14,4 @@ pub unsafe fn init() {
COMMAND.write(SELECT_CHAN0 | LOHI | 5);
CHAN0.write((CHAN0_DIVISOR & 0xFF) as u8);
CHAN0.write((CHAN0_DIVISOR >> 8) as u8);
println!("Using PIT");
}
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment