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.
-/* $OpenBSD: lapic.c,v 1.62 2022/08/25 20:43:17 cheloha Exp $ */
+/* $OpenBSD: lapic.c,v 1.63 2022/09/10 01:30:14 cheloha Exp $ */
/* $NetBSD: lapic.c,v 1.2 2003/05/08 01:04:35 fvdl Exp $ */
/*-
void
lapic_initclocks(void)
{
- lapic_startclock();
-
i8254_inittimecounter_simple();
+ lapic_startclock();
}
-/* $OpenBSD: lapic.c,v 1.51 2022/09/06 17:26:27 cheloha Exp $ */
+/* $OpenBSD: lapic.c,v 1.52 2022/09/10 01:30:14 cheloha Exp $ */
/* $NetBSD: lapic.c,v 1.1.2.8 2000/02/23 06:10:50 sommerfeld Exp $ */
/*-
void
lapic_initclocks(void)
{
- lapic_startclock();
-
i8254_inittimecounter_simple();
+ lapic_startclock();
}
extern int gettick(void); /* XXX put in header file */