Skip to content
Snippets Groups Projects
Verified Commit 90339028 authored by Jeremy Soller's avatar Jeremy Soller
Browse files

Better messaging about which timer is used

parent 04cc8a2d
No related branches found
No related tags found
No related merge requests found
......@@ -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");
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment