From owner-freebsd-stable@FreeBSD.ORG Wed Mar 30 15:00:35 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 31EF816A4CE for ; Wed, 30 Mar 2005 15:00:35 +0000 (GMT) Received: from wrzx28.rz.uni-wuerzburg.de (wrzx28.rz.uni-wuerzburg.de [132.187.3.28]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4F75A43D55 for ; Wed, 30 Mar 2005 15:00:34 +0000 (GMT) (envelope-from q@uni.de) Received: from wrzx34.rz.uni-wuerzburg.de (wrzx34.rz.uni-wuerzburg.de [132.187.3.34]) by wrzx28.rz.uni-wuerzburg.de (Postfix) with ESMTP id 184EDD4B69 for ; Wed, 30 Mar 2005 17:00:33 +0200 (CEST) Received: from virusscan (localhost [127.0.0.1]) by wrzx34.rz.uni-wuerzburg.de (Postfix) with ESMTP id F2307AAB2E for ; Wed, 30 Mar 2005 17:00:32 +0200 (CEST) Received: from wrzx28.rz.uni-wuerzburg.de (wrzx28.rz.uni-wuerzburg.de [132.187.3.28]) by wrzx34.rz.uni-wuerzburg.de (Postfix) with ESMTP id D168BA5B3E for ; Wed, 30 Mar 2005 17:00:32 +0200 (CEST) Received: from frodo.galgenberg.net (wwsx14.win-screen.uni-wuerzburg.de [132.187.253.14]) by wrzx28.rz.uni-wuerzburg.de (Postfix) with ESMTP id B6FB9D4B69 for ; Wed, 30 Mar 2005 17:00:32 +0200 (CEST) Received: from coyote.q.local (gb-21-237.galgenberg.net [172.16.21.237]) by frodo.galgenberg.net (8.13.1/8.13.1) with ESMTP id j2UF0WkG024262 for ; Wed, 30 Mar 2005 17:00:32 +0200 (CEST) (envelope-from q@uni.de) Received: from roadrunner.q.local (roadrunner.q.local [192.168.0.148]) by coyote.q.local (8.13.1/8.13.1) with ESMTP id j2UF0WWi060629 for ; Wed, 30 Mar 2005 17:00:32 +0200 (CEST) (envelope-from q@uni.de) Received: from roadrunner.q.local (localhost [127.0.0.1]) by roadrunner.q.local (8.13.3/8.13.1) with ESMTP id j2UF0WNl006213 for ; Wed, 30 Mar 2005 17:00:32 +0200 (CEST) (envelope-from q@uni.de) Received: (from q@localhost) by roadrunner.q.local (8.13.3/8.13.1/Submit) id j2UF0VLV006212 for stable@freebsd.org; Wed, 30 Mar 2005 17:00:31 +0200 (CEST) (envelope-from q@uni.de) Date: Wed, 30 Mar 2005 17:00:31 +0200 From: Ulrich Spoerlein To: stable@freebsd.org Message-ID: <20050330150031.GA2326@galgenberg.net> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="MGYHOYXEY6WxJCY8" Content-Disposition: inline User-Agent: Mutt/1.5.8i X-Virus-Scanned: by amavisd-new (Rechenzentrum Universitaet Wuerzburg) Subject: 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 15:00:35 -0000 --MGYHOYXEY6WxJCY8 Content-Type: text/plain; charset=iso-8859-15 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hi, long story short: boot0cfg -B ad0 -> No beeping on boot boot0cfg -B -o noupdate ad0 -> Annoying beep. 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? /* * 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 int $0x1a # system time movw %dx,%di # Ticks when addw _TICKS(%bp),%di # timeout /* * Busy loop, looking for keystrokes but keeping one eye on the time. */ main.8: #ifndef SIO movb $0x1,%ah # BIOS: Check int $0x16 # for keypress jnz main.11 # Have one #else /* SIO */ movb $0x03,%ah # BIOS: Read COM call bioscom testb $0x01,%ah # Check line status jnz main.11 # (bit 1 indicates input) #endif /* SIO */ xorb %ah,%ah # BIOS: Get int $0x1a # system time cmpw %di,%dx # Timeout? jb main.8 # No Ulrich Sp=F6rlein --=20 PGP Key ID: F0DB9F44 Encrypted mail welcome! Fingerprint: F1CE D062 0CA9 ADE3 349B 2FE8 980A C6B5 F0DB 9F44 Ok, which part of "Ph'nglui mglw'nafh Cthulhu R'lyeh wgah'nagl fhtagn." didn't you understand? --MGYHOYXEY6WxJCY8 Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.0 (FreeBSD) iD8DBQFCSr8PmArGtfDbn0QRAgXWAKDtlLlu5/JMJ2sHC3+jDbLKJ5AuWQCeJ42O S6UvuWoNK5pfGY6LfDbcbFk= =hk8Y -----END PGP SIGNATURE----- --MGYHOYXEY6WxJCY8--