From 2c91905a0914b7547cd9d1e8b91891a6b0faddb7 Mon Sep 17 00:00:00 2001 From: kettenis Date: Thu, 29 Jul 2010 13:36:30 +0000 Subject: [PATCH] Don't forget to register the i8254-based timecounter if we use the i8254 for clock interrupts. Unbreaks amd64 in PIC mode. --- sys/arch/amd64/isa/clock.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/sys/arch/amd64/isa/clock.c b/sys/arch/amd64/isa/clock.c index 96234b41bfe..3d74e902e19 100644 --- a/sys/arch/amd64/isa/clock.c +++ b/sys/arch/amd64/isa/clock.c @@ -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 -- 2.20.1