Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 6 Feb 2009 12:54:56 -0500
From:      John Baldwin <jhb@freebsd.org>
To:        Andriy Gapon <avg@icyb.net.ua>
Cc:        freebsd-arch@freebsd.org
Subject:   Re: Trimming the default /boot/device.hints
Message-ID:  <200902061254.57192.jhb@freebsd.org>
In-Reply-To: <498C6DC9.8020700@icyb.net.ua>
References:  <200901260947.32870.jhb@freebsd.org> <200902061155.48705.jhb@freebsd.org> <498C6DC9.8020700@icyb.net.ua>

next in thread | previous in thread | raw e-mail | index | archive | help
On Friday 06 February 2009 12:05:13 pm Andriy Gapon wrote:
> on 06/02/2009 18:55 John Baldwin said the following:
> > On Friday 06 February 2009 11:43:09 am John Baldwin wrote:
> >> 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)?
> >> Specifically, look at sc_cnprobe() in sys/dev/syscons/syscons.c.  It 
calls a 
> >> sc_cons_get_priority() routine that on x86 maps lives in 
> >> sys/isa/syscons_isa.c.  This checks for a syscons hint.  Changing it to 
> >> always assume a unit 0 would probably allow this to work.
> > 
> > Something like this (untested):
> 
> I am not sure, but maybe, just in case, also add
> sc_get_softc(0,0) != NULL
> check?
> I guess device_get_softc returns NULL for non-attached/unknown devices.

This check happens long before new-bus gets started, so there are no softc's 
to check.

-- 
John Baldwin



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200902061254.57192.jhb>