From owner-freebsd-hackers@FreeBSD.ORG Sun Nov 14 10:11:50 2004 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 00C0016A4CE; Sun, 14 Nov 2004 10:11:50 +0000 (GMT) Received: from cs1.cs.huji.ac.il (cs1.cs.huji.ac.il [132.65.16.10]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9FCFA43D39; Sun, 14 Nov 2004 10:11:49 +0000 (GMT) (envelope-from danny@cs.huji.ac.il) Received: from pampa.cs.huji.ac.il ([132.65.80.32]) by cs1.cs.huji.ac.il with esmtp id 1CTHMK-0005bY-Gq; Sun, 14 Nov 2004 12:11:48 +0200 X-Mailer: exmh version 2.7.0 06/18/2004 with nmh-1.0.4 To: Ruslan Ermilov In-Reply-To: Message from Ruslan Ermilov of "Sun, 14 Nov 2004 11:38:50 +0200." <20041114093850.GE84553@ip.net.ua> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Sun, 14 Nov 2004 12:11:48 +0200 From: Danny Braniss Message-Id: <20041114101149.9FCFA43D39@mx1.FreeBSD.org> cc: freebsd-hackers@freebsd.org Subject: Re: boot serial console speed X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 14 Nov 2004 10:11:50 -0000 [...] > This is the value passed in the AL register to the Int 14/AH=3D00h > BIOS function: > > http://www.ctyme.com/intr/rb-0811.htm > > : Bit(s) Description (Table 00300) > : 7-5 data rate (110,150,300,600,1200,2400,4800,9600 bps) > : 4-3 parity (00 or 10 =3D none, 01 =3D odd, 11 =3D even) > : 2 stop bits (set =3D 2, clear =3D 1) > : 1-0 data bits (00 =3D 5, 01 =3D 6, 10 =3D 7, 11 =3D 8) > > 0xE3 =3D 111-00-0-11 =3D 9600 bps, no parity, 1 stop bit, 8 data bits > > But I think it's not possible to set it to anything above 9600 bps > using this BIOS call. yes, you are probably correct. Assuming then, that if we want speeds above 9600bps, and assuming that the bios set the bauds correctly, how about setting BOOT_BOOT0_COMCONSOLE_SPEED=0 and if so in boot0.S #if defined(SIO) && COMSPEED != 0 /* * Initialize the serial port. bioscom preserves the driver number in DX. */ movw COMSPEED,%ax # defined by Makefile callw bioscom #endif