Damien Zammit, le ven. 02 févr. 2024 06:39:57 +, a ecrit:
> diff --git a/i386/i386/apic.c b/i386/i386/apic.c
> index 0cf7c37c..e3d53ce3 100644
> --- a/i386/i386/apic.c
> +++ b/i386/i386/apic.c
> @@ -26,6 +26,9 @@
> #include
> #include
>
> +uint32_t hpet_period_nsec;
> +
> +extern uint32_t
Enables a 32 bit periodic HPET timer without generating interrupts.
The purpose of this is to provide a convenient udelay/mdelay in mach
since the pit one-shot mode is unreliable.
TESTED: This works in qemu correctly
TESTED: This works on an AMD board with ACPI v2.0 correctly
---
i386/i386/apic.c