Re: [PATCH gnumach] lapic timer: Calibrate via mach timer not PIT

2023-03-05 Thread Samuel Thibault
Hello, Thanks for agreeing to switch to that approach :) Damien Zammit, le dim. 05 mars 2023 02:06:54 +, a ecrit: > diff --git a/i386/i386at/ioapic.c b/i386/i386at/ioapic.c > index d2ea84ad..95c1b368 100644 > --- a/i386/i386at/ioapic.c > +++ b/i386/i386at/ioapic.c > @@ -30,9 +30,11 @@ > #inc

[PATCH gnumach] lapic timer: Calibrate via mach timer not PIT

2023-03-04 Thread Damien Zammit
Previously the lapic timer was calibrated by one-shot PIT timer2. This method can be buggy and generally unused in emulation environments. This patch reworks the timer calibration to use a mach timer based on regular PIT interrupts to remapped IOAPIC pin. This also changes the primary clock source