From owner-freebsd-arch@FreeBSD.ORG Fri Feb 6 16:27:20 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 A574D106564A; Fri, 6 Feb 2009 16:27:20 +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 E41148FC12; Fri, 6 Feb 2009 16:27:19 +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 n16GOq5C060864; Fri, 6 Feb 2009 09:24:52 -0700 (MST) (envelope-from imp@bsdimp.com) Date: Fri, 06 Feb 2009 09:25:23 -0700 (MST) Message-Id: <20090206.092523.2067072549.imp@bsdimp.com> To: jhb@freebsd.org From: "M. Warner Losh" In-Reply-To: <200902061106.41235.jhb@freebsd.org> References: <200902060937.55724.jhb@freebsd.org> <498C55BB.3030606@icyb.net.ua> <200902061106.41235.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 16:27:20 -0000 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. Warner