Don't forget to register the i8254-based timecounter if we use the i8254
authorkettenis <kettenis@openbsd.org>
Thu, 29 Jul 2010 13:36:30 +0000 (13:36 +0000)
committerkettenis <kettenis@openbsd.org>
Thu, 29 Jul 2010 13:36:30 +0000 (13:36 +0000)
for clock interrupts.  Unbreaks amd64 in PIC mode.

sys/arch/amd64/isa/clock.c

index 96234b4..3d74e90 100644 (file)
@@ -1,4 +1,4 @@
-/*     $OpenBSD: clock.c,v 1.14 2010/07/25 21:43:38 deraadt Exp $      */
+/*     $OpenBSD: clock.c,v 1.15 2010/07/29 13:36:30 kettenis Exp $     */
 /*     $NetBSD: clock.c,v 1.1 2003/04/26 18:39:50 fvdl Exp $   */
 
 /*-
@@ -319,6 +319,8 @@ i8254_initclocks(void)
            0, "rtc");
 
        rtcstart();                     /* start the mc146818 clock */
+
+       i8254_inittimecounter();        /* hook the interrupt-based i8254 tc */
 }
 
 void