From d3b8b2e12a3566949c0eba74f664c2680cd6fabf Mon Sep 17 00:00:00 2001 From: Elfein Landers Date: Sat, 6 Aug 2022 20:59:31 -0700 Subject: [PATCH] corrected constant to match documentation --- ableos/src/arch/x86_64/interrupts.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ableos/src/arch/x86_64/interrupts.rs b/ableos/src/arch/x86_64/interrupts.rs index 8813509e..9f63f2ef 100644 --- a/ableos/src/arch/x86_64/interrupts.rs +++ b/ableos/src/arch/x86_64/interrupts.rs @@ -193,7 +193,7 @@ pub fn init_idt() { /// https://wiki.osdev.org/Pit /// -const PIT_MAX_FREQ: u32 = 1193180; +const PIT_MAX_FREQ: u32 = 1193182; pub fn set_pit_frequency(pit: u16, freq: u32) { // Dividing the maximum frequency by the desired frequency