Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 7 Dec 2004 17:10:30 GMT
From:      Ceri Davies <ceri@submonkey.net>
To:        freebsd-bugs@FreeBSD.org
Subject:   Re: misc/74777: Bootup "beep" in 5.3 should be disabled by default
Message-ID:  <200412071710.iB7HAUrL080736@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help
The following reply was made to PR kern/74777; it has been noted by GNATS.

From: Ceri Davies <ceri@submonkey.net>
To: FreeBSD Gnats Submit <freebsd-gnats-submit@FreeBSD.org>
Cc: Carsten Zimmermann <cz-freebsd@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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200412071710.iB7HAUrL080736>