summaryrefslogtreecommitdiff
path: root/sys/arch/arm
diff options
context:
space:
mode:
authorDale Rahn <drahn@cvs.openbsd.org>2006-07-20 02:34:05 +0000
committerDale Rahn <drahn@cvs.openbsd.org>2006-07-20 02:34:05 +0000
commitff9a4a630143dcfbb8448b5a746c24f771861fce (patch)
tree2f550c80baab00f43ba603f283594907621c188b /sys/arch/arm
parentd5de3890cb536b27edfa50a791c4db8f3e85c91f (diff)
Get rid of the 'nextevent out of bounds' error message, if interrupts
are held off for too long, allow the system to continue running, even if time is lost.
Diffstat (limited to 'sys/arch/arm')
-rw-r--r--sys/arch/arm/xscale/i80321_clock.c11
1 files changed, 9 insertions, 2 deletions
diff --git a/sys/arch/arm/xscale/i80321_clock.c b/sys/arch/arm/xscale/i80321_clock.c
index 9ff758228a8..3c501bd3a52 100644
--- a/sys/arch/arm/xscale/i80321_clock.c
+++ b/sys/arch/arm/xscale/i80321_clock.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: i80321_clock.c,v 1.3 2006/07/10 16:11:08 drahn Exp $ */
+/* $OpenBSD: i80321_clock.c,v 1.4 2006/07/20 02:34:04 drahn Exp $ */
/*
* Copyright (c) 2006 Dale Rahn <drahn@openbsd.org>
@@ -228,8 +228,15 @@ i80321_intr(void *frame)
if (nextevent < 10 /* XXX */)
nextevent = 10;
if (nextevent > ticks_per_intr) {
- printf("nextevent out of bounds %x\n", nextevent);
+ /*
+ * If interrupts are blocked too long, like during
+ * the root prompt or ddb, the timer can roll over,
+ * this will allow the system to continue to run
+ * even if time is lost.
+ */
nextevent = ticks_per_intr;
+ nexttickevent = now;
+ nextstatevent = now;
}