Date: Wed, 30 Mar 2005 17:00:31 +0200 From: Ulrich Spoerlein <q@uni.de> To: stable@freebsd.org Subject: boot0: To beep or not to beep? Message-ID: <20050330150031.GA2326@galgenberg.net>
next in thread | raw e-mail | index | archive | help
[-- Attachment #1 --]
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örlein
--
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?
[-- Attachment #2 --]
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.0 (FreeBSD)
iD8DBQFCSr8PmArGtfDbn0QRAgXWAKDtlLlu5/JMJ2sHC3+jDbLKJ5AuWQCeJ42O
S6UvuWoNK5pfGY6LfDbcbFk=
=hk8Y
-----END PGP SIGNATURE-----
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20050330150031.GA2326>
