From owner-freebsd-arch@FreeBSD.ORG Fri Feb 6 17:07:18 2009 Return-Path: Delivered-To: freebsd-arch@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 8A6411065679; Fri, 6 Feb 2009 17:07:18 +0000 (UTC) (envelope-from imp@bsdimp.com) Received: from harmony.bsdimp.com (bsdimp.com [199.45.160.85]) by mx1.freebsd.org (Postfix) with ESMTP id 2D4708FC0A; Fri, 6 Feb 2009 17:07:18 +0000 (UTC) (envelope-from imp@bsdimp.com) Received: from localhost (localhost [127.0.0.1]) by harmony.bsdimp.com (8.14.2/8.14.1) with ESMTP id n16H54kX061392; Fri, 6 Feb 2009 10:05:04 -0700 (MST) (envelope-from imp@bsdimp.com) Date: Fri, 06 Feb 2009 10:05:35 -0700 (MST) Message-Id: <20090206.100535.-221723595.imp@bsdimp.com> To: jhb@freebsd.org From: "M. Warner Losh" In-Reply-To: <200902061137.42052.jhb@freebsd.org> References: <200902061106.41235.jhb@freebsd.org> <20090206.092523.2067072549.imp@bsdimp.com> <200902061137.42052.jhb@freebsd.org> X-Mailer: Mew version 5.2 on Emacs 21.3 / Mule 5.0 (SAKAKI) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Cc: avg@icyb.net.ua, freebsd-arch@freebsd.org Subject: Re: Trimming the default /boot/device.hints X-BeenThere: freebsd-arch@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussion related to FreeBSD architecture List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 06 Feb 2009 17:07:19 -0000 In message: <200902061137.42052.jhb@freebsd.org> John Baldwin writes: : On Friday 06 February 2009 11:25:23 am M. Warner Losh wrote: : > In message: <200902061106.41235.jhb@freebsd.org> : > John Baldwin writes: : > : On Friday 06 February 2009 10:22:35 am Andriy Gapon wrote: : > : > on 06/02/2009 16:37 John Baldwin said the following: : > : > > : > : > > Yes, it only needs the hint for it to be a console device. : > : > > : > : > : > : > I am slightly confused as to how that hint works then, it's not like a : > : > standard isa hint it seems. : > : > Can it somehow be built-in (into the code)? : > : : > : It works "normally" during the new-bus attach, but the low-level console : code : > : probably checks for it early on as well. The serial console code works : that : > : way. The uart(4) and sio(4) drivers explicitly look for uart/sio hints to : > : find possible console devices. This is separate from when the ISA bus : adds : > : uart/sio devices from the hints later on. : > : > sio could be loaded as a driver, and still be the console driver. But : > it had to be loaded from /boot/loader. : : Are you sure? The console stuff is initialized (cninit()) well before any : SYSINIT's are run. I thought so, but maybe I'm just remembering that I could load it for my serial ports. I haven't had a laptop with serial ports on it in a while. Warner