misc/74777: Bootup "beep" in 5.3 should be disabled by default

Ceri Davies ceri at submonkey.net
Tue Dec 7 09:10:30 PST 2004


The following reply was made to PR kern/74777; it has been noted by GNATS.

From: Ceri Davies <ceri at submonkey.net>
To: FreeBSD Gnats Submit <freebsd-gnats-submit at FreeBSD.org>
Cc: Carsten Zimmermann <cz-freebsd at aegisnet.biz>
Subject: Re: misc/74777: Bootup "beep" in 5.3 should be disabled by default
Date: Tue, 7 Dec 2004 17:08:41 +0000

 Assuming that boot0sio is loaded when booting from a serial console,
 the attached (untested patch) should beep on a serial console and not in
 any other situation.
 
 Index: sys/boot/i386/boot0/boot0.S
 ===================================================================
 RCS file: /home/ncvs/src/sys/boot/i386/boot0/boot0.S,v
 retrieving revision 1.12
 diff -u -r1.12 boot0.S
 --- sys/boot/i386/boot0/boot0.S	24 Nov 2004 15:39:04 -0000	1.12
 +++ sys/boot/i386/boot0/boot0.S	7 Dec 2004 16:46:50 -0000
 @@ -196,11 +196,15 @@
  		decw %si			#  default
  		callw putkey			#  key
  /*
 - * Start of input loop.  Beep and take note of time
 + * Start of input loop.  Beep when on serial console and take note of time
   */
 +#ifdef SIO
  main.10:	movb $ASCII_BEL,%al		# Signal
  		callw putchr			#  beep!
  		xorb %ah,%ah			# BIOS: Get
 +#else
 +main.10:	xorb %ah,%ah			# BIOS: Get
 +#endif	/* SIO */
  		int $0x1a			#  system time
  		movw %dx,%di			# Ticks when
  		addw _TICKS(%bp),%di		#  timeout


More information about the freebsd-bugs mailing list