From owner-freebsd-arch@FreeBSD.ORG Fri Feb 6 16:48:05 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 405EC106564A; Fri, 6 Feb 2009 16:48:05 +0000 (UTC) (envelope-from avg@icyb.net.ua) Received: from citadel.icyb.net.ua (citadel.icyb.net.ua [212.40.38.140]) by mx1.freebsd.org (Postfix) with ESMTP id 31B408FC14; Fri, 6 Feb 2009 16:48:03 +0000 (UTC) (envelope-from avg@icyb.net.ua) Received: from odyssey.starpoint.kiev.ua (alpha-e.starpoint.kiev.ua [212.40.38.101]) by citadel.icyb.net.ua (8.8.8p3/ICyb-2.3exp) with ESMTP id SAA20067; Fri, 06 Feb 2009 18:48:02 +0200 (EET) (envelope-from avg@icyb.net.ua) Message-ID: <498C69C1.70605@icyb.net.ua> Date: Fri, 06 Feb 2009 18:48:01 +0200 From: Andriy Gapon User-Agent: Thunderbird 2.0.0.19 (X11/20090110) MIME-Version: 1.0 To: John Baldwin References: <200901260947.32870.jhb@freebsd.org> <200902060937.55724.jhb@freebsd.org> <498C55BB.3030606@icyb.net.ua> <200902061106.41235.jhb@freebsd.org> In-Reply-To: <200902061106.41235.jhb@freebsd.org> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: 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:48:05 -0000 on 06/02/2009 18:06 John Baldwin said the following: > 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. > John, could it be sc_get_cons_priority function in syscons_isa.c? It seems that it explicitly searches through hints data and makes some important decisions based on it. It seems that without any hints at all it would return CN_DEAD. Maybe that code could be smarter and return something correct without relying that much on hints. It really doesn't seem like the hints should be so critical there (e.g. see ifdef XBOX there). -- Andriy Gapon