Fix the frequecy bug caused by IOAPIC

This commit is contained in:
Chen Chengjun 2023-12-05 19:53:51 +08:00 committed by Tate, Hongliang Tian
parent 65ef055f4e
commit ba08895fc3

View File

@ -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.