From owner-freebsd-bugs@FreeBSD.ORG Tue Dec 7 17:10:30 2004 Return-Path: Delivered-To: freebsd-bugs@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 4306016A4CE for ; Tue, 7 Dec 2004 17:10:30 +0000 (GMT) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 2F1EC43D67 for ; Tue, 7 Dec 2004 17:10:30 +0000 (GMT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.1/8.13.1) with ESMTP id iB7HAUD2080737 for ; Tue, 7 Dec 2004 17:10:30 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.13.1/8.13.1/Submit) id iB7HAUrL080736; Tue, 7 Dec 2004 17:10:30 GMT (envelope-from gnats) Date: Tue, 7 Dec 2004 17:10:30 GMT Message-Id: <200412071710.iB7HAUrL080736@freefall.freebsd.org> To: freebsd-bugs@FreeBSD.org From: Ceri Davies Subject: Re: misc/74777: Bootup "beep" in 5.3 should be disabled by default X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: Ceri Davies List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 07 Dec 2004 17:10:30 -0000 The following reply was made to PR kern/74777; it has been noted by GNATS. From: Ceri Davies To: FreeBSD Gnats Submit Cc: Carsten Zimmermann 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