mirror of
https://github.com/Mathewnd/Astral.git
synced 2026-11-01 23:18:21 +00:00
apic: modify apic timer calibration a bit
This commit is contained in:
@@ -216,7 +216,7 @@ void arch_apic_timerinit() {
|
|||||||
__assert(isr);
|
__assert(isr);
|
||||||
int vec = isr->id & 0xff;
|
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;
|
void (*uswait)(time_t) = NULL;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user