From 100c045e362beb5256bfbb946b8235d6d1e442d4 Mon Sep 17 00:00:00 2001 From: Matheus Date: Sat, 21 Sep 2024 19:07:28 -0300 Subject: [PATCH] apic: modify apic timer calibration a bit --- kernel-src/arch/x86-64/apic.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kernel-src/arch/x86-64/apic.c b/kernel-src/arch/x86-64/apic.c index e94284f5..e4dd9771 100644 --- a/kernel-src/arch/x86-64/apic.c +++ b/kernel-src/arch/x86-64/apic.c @@ -216,7 +216,7 @@ void arch_apic_timerinit() { __assert(isr); int vec = isr->id & 0xff; - writelapic(APIC_TIMER_DIVIDE, 3); // divide by 16 because us precision is desired and most amd64 machines will have the clock frequency at >1GHz anyways + writelapic(APIC_TIMER_DIVIDE, 11); void (*uswait)(time_t) = NULL;