From: maja Date: Fri, 11 Apr 1997 21:18:02 +0000 (+0000) Subject: If someone pressed a nonprintable character in getsn (eg in boot -c) the X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=c4dc6444449cfc0fc4357be39d02bb5c816d5e15;p=openbsd 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 --- 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); diff --git a/sys/arch/i386/isa/clock.c b/sys/arch/i386/isa/clock.c index ca6943dded4..9ed4839557c 100644 --- a/sys/arch/i386/isa/clock.c +++ b/sys/arch/i386/isa/clock.c @@ -299,6 +299,10 @@ sysbeep(pitch, period) int pitch, period; { static int last_pitch; + extern int cold; + + if (cold) + return; /* Can't beep yet. */ if (beeping) untimeout(sysbeepstop, 0);