amd64, i386: lapic_initclocks: install i8254 before lapic_startclock()
authorcheloha <cheloha@openbsd.org>
Sat, 10 Sep 2022 01:30:14 +0000 (01:30 +0000)
committercheloha <cheloha@openbsd.org>
Sat, 10 Sep 2022 01:30:14 +0000 (01:30 +0000)
commita063d95f4b2a6f94d09ba563f9f89ba9f6ad2c6e
treecefef707fe8e29a2f1a60bc45fc19f53c775315d
parentbdce9d03b49cd9b7a0daee512f5ee29e4e23a121
amd64, i386: lapic_initclocks: install i8254 before lapic_startclock()

In the future, the clock interrupt code will need a working
timecounter to do its job.  In lapic_initclocks(), call
i8254_inittimecounter_simple() before lapic_startclock().

The i8254 may be be a piece of junk, but one timecounter is better
than none.
sys/arch/amd64/amd64/lapic.c
sys/arch/i386/i386/lapic.c