Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
redox-os
kernel
Commits
90339028
Verified
Commit
90339028
authored
Dec 23, 2020
by
Jeremy Soller
Browse files
Better messaging about which timer is used
parent
04cc8a2d
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/arch/x86_64/device/mod.rs
View file @
90339028
...
...
@@ -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
();
...
...
src/arch/x86_64/device/pit.rs
View file @
90339028
...
...
@@ -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"
);
}
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment