summaryrefslogtreecommitdiff
path: root/sys/arch/arc
diff options
context:
space:
mode:
authorMats O Jansson <maja@cvs.openbsd.org>1997-04-11 21:18:04 +0000
committerMats O Jansson <maja@cvs.openbsd.org>1997-04-11 21:18:04 +0000
commitee9b7dd9acd7db882d25640eebc2409e2b43a58e (patch)
tree2fc3d6db2a959d709547a1f31ed3a3cc3bee35f9 /sys/arch/arc
parent46b059fa0a0783e4880b30b4161b296068675b12 (diff)
If someone pressed a nonprintable character in getsn (eg in boot -c) the
speaker would be turned on but not off. So don't allow sysbeep until timers works. -moj
Diffstat (limited to 'sys/arch/arc')
-rw-r--r--sys/arch/arc/isa/isabus.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/sys/arch/arc/isa/isabus.c b/sys/arch/arc/isa/isabus.c
index acce947fc7e..4dfa984ed6e 100644
--- a/sys/arch/arc/isa/isabus.c
+++ b/sys/arch/arc/isa/isabus.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: isabus.c,v 1.9 1997/04/10 16:29:28 pefo Exp $ */
+/* $OpenBSD: isabus.c,v 1.10 1997/04/11 21:18:02 maja Exp $ */
/* $NetBSD: isa.c,v 1.33 1995/06/28 04:30:51 cgd Exp $ */
/*-
@@ -504,6 +504,10 @@ sysbeep(pitch, period)
{
static int last_pitch, last_period;
int s;
+ extern int cold;
+
+ if (cold)
+ return; /* Can't beep yet. */
if (beeping)
untimeout(sysbeepstop, 0);