diff options
author | Steve Murphree <smurph@cvs.openbsd.org> | 2001-07-06 05:14:32 +0000 |
---|---|---|
committer | Steve Murphree <smurph@cvs.openbsd.org> | 2001-07-06 05:14:32 +0000 |
commit | 34b13757881b59c5e4f76de2bb383bc8e0227a87 (patch) | |
tree | 68cf12894df9152c7bccc03f5ca6c1885bb2245f /sys/arch/mvmeppc/dev/clock.c | |
parent | 69b8f9e7beeddd85a5c5c83ce2f81f9c619d1b0f (diff) |
resolve compile problems
Diffstat (limited to 'sys/arch/mvmeppc/dev/clock.c')
-rw-r--r-- | sys/arch/mvmeppc/dev/clock.c | 18 |
1 files changed, 15 insertions, 3 deletions
diff --git a/sys/arch/mvmeppc/dev/clock.c b/sys/arch/mvmeppc/dev/clock.c index a5e7af5d53b..1d3434d0ed9 100644 --- a/sys/arch/mvmeppc/dev/clock.c +++ b/sys/arch/mvmeppc/dev/clock.c @@ -1,4 +1,4 @@ -/* $OpenBSD: clock.c,v 1.1 2001/06/26 21:57:40 smurph Exp $ */ +/* $OpenBSD: clock.c,v 1.2 2001/07/06 05:14:29 smurph Exp $ */ /* $NetBSD: clock.c,v 1.1 1996/09/30 16:34:40 ws Exp $ */ /* @@ -245,6 +245,7 @@ resettodr() } } +static unsigned cnt = 1001; void decr_intr(frame) struct clockframe *frame; @@ -260,9 +261,15 @@ struct clockframe *frame; */ if (!ticks_per_intr) return; - +#if 0 + cnt++; + if (cnt > 1000) { + printf("derc int\n"); + cnt = 0; + } +#endif intrcnt[PPC_CLK_IRQ]++; - + /* * Based on the actual time delay since the last decrementer reload, * we arrange for earlier interrupt next time. @@ -301,6 +308,11 @@ struct clockframe *frame; hardclock(frame); } splx(pri); +#if 0 + if (cnt == 0) + printf("derc int done.\n"); +#endif + } void |