diff options
author | 2006-07-20 02:34:04 +0000 | |
---|---|---|
committer | 2006-07-20 02:34:04 +0000 | |
commit | ff83af724aa00ad7c7591f69204a10b735f8f53b (patch) | |
tree | b228ed477e3cbdd31698e4d9e06f44cd5dbe2c36 | |
parent | Don't check the CORBRPRST flag for the NVidia MCP51/55 and ALI M5461. (diff) | |
download | wireguard-openbsd-ff83af724aa00ad7c7591f69204a10b735f8f53b.tar.xz wireguard-openbsd-ff83af724aa00ad7c7591f69204a10b735f8f53b.zip |
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.
-rw-r--r-- | sys/arch/arm/xscale/i80321_clock.c | 11 |
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; } |