From owner-freebsd-hackers Wed Jul 28 13: 5:26 1999 Delivered-To: freebsd-hackers@freebsd.org Received: from nothing-going-on.demon.co.uk (nothing-going-on.demon.co.uk [193.237.89.66]) by hub.freebsd.org (Postfix) with ESMTP id 8A93F155C1 for ; Wed, 28 Jul 1999 13:05:16 -0700 (PDT) (envelope-from nik@nothing-going-on.demon.co.uk) Received: from kilt.nothing-going-on.org (kilt.nothing-going-on.org [192.168.1.18]) by nothing-going-on.demon.co.uk (8.9.3/8.9.3) with ESMTP id UAA66639 for ; Wed, 28 Jul 1999 20:56:10 +0100 (BST) (envelope-from nik@catkin.nothing-going-on.org) Received: (from nik@localhost) by kilt.nothing-going-on.org (8.9.3/8.9.3) id PAA40456 for hackers@freebsd.org; Wed, 28 Jul 1999 15:38:12 +0100 (BST) (envelope-from nik@catkin.nothing-going-on.org) Date: Wed, 28 Jul 1999 15:38:12 +0100 From: Nik Clayton To: hackers@freebsd.org Subject: Including isa/isareg.h in sys/i386/boot/biosboot/serial.S Message-ID: <19990728153811.A39313@kilt.nothing-going-on.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.95.4i Organization: Nik at home, where there's nothing going on Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG -hackers, In the kernel config file you can use symbolic names for the various COM ports, IO_COM1, IO_COM2, and so on. These seem be defined in sys/isa/isareg.h. If you want to configure FreeBSD to boot from a serial console you have to set BOOT_COMCONSOLE_PORT in /etc/make.conf -- you can't use the defines here, you have to use 0x3F8, 0x2F8, and so on. As far as I can tell, BOOT_COMCONSOLE_PORT eventually gets passed down to sys/i386/boot/biosboot/serial.S. So, why not apply the following trivial patch to serial.S, so that /etc/make.conf can instead contain BOOT_COMCONSOLE_PORT= IO_COM2 which is just slightly friendlier? I'm not what you'd call a kernel hacker, so this might be a stupid idea. . . N Index: serial.S =================================================================== RCS file: /home/ncvs/src/sys/i386/boot/biosboot/serial.S,v retrieving revision 1.12 diff -u -1 -r1.12 serial.S --- serial.S 1999/04/22 21:02:44 1.12 +++ serial.S 1999/07/28 14:30:54 @@ -70,2 +70,3 @@ #include +#include #include "asm.h" -- [intentional self-reference] can be easily accommodated using a blessed, non-self-referential dummy head-node whose own object destructor severs the links. -- Tom Christiansen in <375143b5@cs.colorado.edu> To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message