Adam Steen wrote: > I initially thought the calibration would take place at line 470 of > amd64/identcpu.c > (https://cvsweb.openbsd.org/cgi-bin/cvsweb/src/sys/arch/amd64/amd64/identcpu.c?annotate=1.87) > > But I looked into using the acpihpet directly but it is never exposed > outside of acpihpet.c. > > Could someone point me to were if would be appropriate to complete > this calibration and how to use the acpihpet? (Will it need to be > exposed like i8254_delay/delay_func/delay in machdep.c and cpu.h)
heh, you're getting into the fun stuff now... have a look at dev/acpi/files.acpi and compare acpicpu and acpihpet. see the needs-flag? you need to add that. that gives you a header "acpihpet.h" that you can include to get NACPIHPET to optionally compile code if acpihpet is included in the kernel. grep around under amd64/ for acpicpu.h and NACPICPU for examples.
