mirror of
https://github.com/asterinas/asterinas.git
synced 2025-06-08 21:06:48 +00:00
Fix the frequecy bug caused by IOAPIC
This commit is contained in:
parent
65ef055f4e
commit
ba08895fc3
@ -8,7 +8,7 @@ const TIMER_RATE: u32 = 1193182;
|
||||
|
||||
static TIMER_PERIOD: IoPort<u8, WriteOnlyAccess> = unsafe { IoPort::new(0x40) };
|
||||
static TIMER_MOD: IoPort<u8, WriteOnlyAccess> = unsafe { IoPort::new(0x43) };
|
||||
static TIMER_SQUARE_WAVE: u8 = 0x36;
|
||||
static TIMER_SQUARE_WAVE: u8 = 0x34;
|
||||
|
||||
pub(crate) fn init() {
|
||||
// Initialize timer.
|
||||
|
Loading…
x
Reference in New Issue
Block a user