[prev in list] [next in list] [prev in thread] [next in thread] 

List:       freebsd-stable
Subject:    Re: boot0: To beep or not to beep?
From:       Marc Olzheim <marcolz () stack ! nl>
Date:       2005-03-30 18:18:23
Message-ID: 20050330181823.GB64275 () stack ! nl
[Download RAW message or body]

[Attachment #2 (multipart/mixed)]


On Wed, Mar 30, 2005 at 05:00:31PM +0200, Ulrich Spoerlein wrote:
> I really don't know any assembler, but reading
> /sys/boot/i386/boot0/boot0.S leads me to believe that there should be a
> beep on every boot. However, I certainly don't want any beeps from
> boot0, can I comment out the first two lines of main.10?

You are correct.

This is the patch I use for a laptop with an untunable (and loud) bell
volume.

Marc

["boot0.patch" (text/plain)]

--- /usr/src/sys/boot/i386/boot0/boot0.S	Thu Jun 17 14:02:25 2004
+++ /usr/src/sys/boot/i386/boot0/boot0.S	Thu Oct  7 13:23:08 2004
@@ -38,7 +38,6 @@
 		.set KEY_F1,0x3b		# F1 key scan code
 		.set KEY_1,0x02			# #1 key scan code
 
-		.set ASCII_BEL,0x07		# ASCII code for <BEL>
 		.set ASCII_CR,0x0D		# ASCII code for <CR>
 
 /*
@@ -203,9 +202,7 @@
 /*
  * Start of input loop.  Beep and take note of time
  */
-main.10:	movb $ASCII_BEL,%al		# Signal
-		callw putchr			#  beep!
-		xorb %ah,%ah			# BIOS: Get
+main.10:	xorb %ah,%ah			# BIOS: Get
 		int $0x1a			#  system time
 		movw %dx,%di			# Ticks when
 		addw _TICKS(%bp),%di		#  timeout

[Attachment #6 (application/pgp-signature)]

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic