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
Branches
Tags 0.6.0
No related merge requests found
...@@ -37,8 +37,11 @@ unsafe fn init_hpet() -> bool { ...@@ -37,8 +37,11 @@ unsafe fn init_hpet() -> bool {
} }
pub unsafe fn init_noncore() { pub unsafe fn init_noncore() {
if ! init_hpet() { if init_hpet() {
println!("HPET used as system timer");
} else {
pit::init(); pit::init();
println!("PIT used as system timer");
} }
rtc::init(); rtc::init();
......
...@@ -14,6 +14,4 @@ pub unsafe fn init() { ...@@ -14,6 +14,4 @@ pub unsafe fn init() {
COMMAND.write(SELECT_CHAN0 | LOHI | 5); COMMAND.write(SELECT_CHAN0 | LOHI | 5);
CHAN0.write((CHAN0_DIVISOR & 0xFF) as u8); CHAN0.write((CHAN0_DIVISOR & 0xFF) as u8);
CHAN0.write((CHAN0_DIVISOR >> 8) 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.
Please register or to comment