summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormiod <miod@openbsd.org>2007-07-14 19:06:48 +0000
committermiod <miod@openbsd.org>2007-07-14 19:06:48 +0000
commit37ed96d27d647cbfe0e4d09cfd157dfaa803b550 (patch)
tree83e5dcceea355065b7f97e1517276629cdabba03
parentAdd bge(4). Tested by Maurice Janssen. (diff)
downloadwireguard-openbsd-37ed96d27d647cbfe0e4d09cfd157dfaa803b550.tar.xz
wireguard-openbsd-37ed96d27d647cbfe0e4d09cfd157dfaa803b550.zip
When calibrating the delay const, only allow clock and above interrupts.
This fixes infrequent hangs on reboot due to the ethernet interface interrupting on machines configured to use A/UX style interrupts.
-rw-r--r--sys/arch/mac68k/mac68k/clock.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/arch/mac68k/mac68k/clock.c b/sys/arch/mac68k/mac68k/clock.c
index da5ef6d770c..af50ea6faf2 100644
--- a/sys/arch/mac68k/mac68k/clock.c
+++ b/sys/arch/mac68k/mac68k/clock.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: clock.c,v 1.23 2006/09/26 06:11:42 miod Exp $ */
+/* $OpenBSD: clock.c,v 1.24 2007/07/14 19:06:48 miod Exp $ */
/* $NetBSD: clock.c,v 1.39 1999/11/05 19:14:56 scottr Exp $ */
/*
@@ -366,7 +366,7 @@ mac68k_calibrate_delay()
printf("mac68k_calibrate_delay(): entering timing loop\n");
#endif
- (void)spl0();
+ (void)_spl(IPLTOPSL(mac68k_machine.via1_ipl) - 1);
for (sum = 0, n = 8; n > 0; n--) {
delay_flag = 1;