[PATCH gnumach] pit: Use corrected clock frequency

2023-02-25 Thread Damien Zammit
All PC compatibles operate the PIT at a clock rate of (105/88) MHz --- i386/i386/pit.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/i386/i386/pit.h b/i386/i386/pit.h index b14c4c84..49e1051b 100644 --- a/i386/i386/pit.h +++ b/i386/i386/pit.h @@ -86,7 +86,7 @@ WITH THE USE

Re: [PATCH gnumach] lapic timer: Calibrate based on 10 PIT sleeps for 10ms

2023-02-25 Thread Damien Zammit
On 26/2/23 12:31, Damien Zammit wrote: > NB: This relies on a fix for QEMU as one-shot PIT mode > is currently broken in qemu. Here is the corresponding qemu patch: https://lists.nongnu.org/archive/html/qemu-devel/2023-02/msg07549.html Damien

[PATCH gnumach] lapic timer: Calibrate based on 10 PIT sleeps for 10ms

2023-02-25 Thread Damien Zammit
NB: This relies on a fix for QEMU as one-shot PIT mode is currently broken in qemu. --- i386/i386at/ioapic.c | 19 +++ 1 file changed, 11 insertions(+), 8 deletions(-) diff --git a/i386/i386at/ioapic.c b/i386/i386at/ioapic.c index 24e04653..d2ea84ad 100644 ---

[PATCH gnumach] pit: Fix shadowed hz variable && define modes correctly

2023-02-25 Thread Damien Zammit
--- i386/i386/pit.c | 14 +++--- i386/i386/pit.h | 3 ++- 2 files changed, 9 insertions(+), 8 deletions(-) diff --git a/i386/i386/pit.c b/i386/i386/pit.c index 7373a38e..6c006a98 100644 --- a/i386/i386/pit.c +++ b/i386/i386/pit.c @@ -66,18 +66,18 @@ int pit0_mode =

Re: [PATCH gnumach] kd_mouse: Fix IBM mouse irq getting stuck and blocking console

2023-02-25 Thread Samuel Thibault
Applied, thanks! Damien Zammit, le sam. 25 févr. 2023 06:14:28 +, a ecrit: > TESTED: With and without apic/smp > > --- > i386/i386at/kd_mouse.c | 7 +-- > 1 file changed, 5 insertions(+), 2 deletions(-) > > diff --git a/i386/i386at/kd_mouse.c b/i386/i386at/kd_mouse.c > index