From owner-freebsd-stable@FreeBSD.ORG Wed Mar 30 18:18:25 2005 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 2937916A4CE for ; Wed, 30 Mar 2005 18:18:25 +0000 (GMT) Received: from mailhost.stack.nl (vaak.stack.nl [131.155.140.140]) by mx1.FreeBSD.org (Postfix) with ESMTP id BE7F143D5A for ; Wed, 30 Mar 2005 18:18:24 +0000 (GMT) (envelope-from marcolz@stack.nl) Received: from hammer.stack.nl (hammer.stack.nl [IPv6:2001:610:1108:5010::153]) by mailhost.stack.nl (Postfix) with ESMTP id 2E8831F0D4; Wed, 30 Mar 2005 20:18:24 +0200 (CEST) Received: by hammer.stack.nl (Postfix, from userid 333) id 12CFB6433; Wed, 30 Mar 2005 20:18:24 +0200 (CEST) Date: Wed, 30 Mar 2005 20:18:23 +0200 From: Marc Olzheim To: Ulrich Spoerlein Message-ID: <20050330181823.GB64275@stack.nl> References: <20050330150031.GA2326@galgenberg.net> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="KN5l+BnMqAQyZLvT" Content-Disposition: inline In-Reply-To: <20050330150031.GA2326@galgenberg.net> X-Operating-System: FreeBSD hammer.stack.nl 5.4-PRERELEASE FreeBSD 5.4-PRERELEASE X-URL: http://www.stack.nl/~marcolz/ User-Agent: Mutt/1.5.9i cc: stable@freebsd.org Subject: Re: boot0: To beep or not to beep? X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 30 Mar 2005 18:18:25 -0000 --KN5l+BnMqAQyZLvT Content-Type: multipart/mixed; boundary="yNb1oOkm5a9FJOVX" Content-Disposition: inline --yNb1oOkm5a9FJOVX Content-Type: text/plain; charset=us-ascii Content-Disposition: inline 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 --yNb1oOkm5a9FJOVX Content-Type: text/plain; charset=us-ascii Content-Disposition: attachment; filename="boot0.patch" Content-Transfer-Encoding: quoted-printable --- /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 =20 - .set ASCII_BEL,0x07 # ASCII code for .set ASCII_CR,0x0D # ASCII code for =20 /* @@ -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 --yNb1oOkm5a9FJOVX-- --KN5l+BnMqAQyZLvT Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.0 (FreeBSD) iD8DBQFCSu1vezjnobFOgrERAtAyAKC8D/2SHUaRVsWRDfMh+hQsKUwEwwCfZgsY +KHatw80QUnpQfP9+HkqXTw= =ehcv -----END PGP SIGNATURE----- --KN5l+BnMqAQyZLvT--