diff --git a/ableos/src/arch/x86_64/interrupts.rs b/ableos/src/arch/x86_64/interrupts.rs index 38aa65b2..8388be2d 100644 --- a/ableos/src/arch/x86_64/interrupts.rs +++ b/ableos/src/arch/x86_64/interrupts.rs @@ -177,8 +177,10 @@ pub fn init_idt() { IDT.load(); } +const PIT_MAX_FREQ: u32 = 1193180; + pub fn set_pit_frequency(pit: u16, freq: u32) { - let ret = (1193180 / freq).try_into(); + let ret = (PIT_MAX_FREQ / freq).try_into(); let divisor: u16 = match ret { Ok(div) => div,