atom feed38 messages in org.freebsd.freebsd-archRe: Trimming the default /boot/device...
FromSent OnAttachments
John BaldwinJan 26, 2009 6:47 am 
Rink SpringerJan 26, 2009 7:15 am 
Alfred PerlsteinJan 26, 2009 12:37 pm 
John BaldwinJan 26, 2009 1:40 pm 
Alfred PerlsteinJan 26, 2009 2:02 pm 
John BaldwinJan 26, 2009 2:36 pm 
M. Warner LoshJan 27, 2009 10:38 pm 
M. Warner LoshJan 27, 2009 10:39 pm 
M. Warner LoshJan 27, 2009 10:43 pm 
John BaldwinJan 28, 2009 6:30 am 
M. Warner LoshJan 28, 2009 8:48 am 
Garance A DrosehnJan 28, 2009 10:08 am 
M. Warner LoshJan 28, 2009 11:23 am 
John BaldwinJan 28, 2009 12:40 pm 
M. Warner LoshJan 28, 2009 1:42 pm 
Garance A DrosehnJan 28, 2009 1:50 pm 
John BaldwinJan 28, 2009 2:20 pm 
M. Warner LoshJan 28, 2009 2:41 pm 
John BaldwinJan 28, 2009 2:58 pm 
David O'BrienJan 31, 2009 1:31 am 
M. Warner LoshJan 31, 2009 8:25 pm 
David O'BrienJan 31, 2009 8:43 pm 
Andriy GaponFeb 6, 2009 4:17 am 
John BaldwinFeb 6, 2009 6:37 am 
Andriy GaponFeb 6, 2009 7:22 am 
John BaldwinFeb 6, 2009 8:06 am 
M. Warner LoshFeb 6, 2009 8:25 am 
John BaldwinFeb 6, 2009 8:37 am 
John BaldwinFeb 6, 2009 8:42 am 
Andriy GaponFeb 6, 2009 8:47 am 
Andriy GaponFeb 6, 2009 8:48 am 
John BaldwinFeb 6, 2009 8:55 am 
Andriy GaponFeb 6, 2009 9:04 am 
M. Warner LoshFeb 6, 2009 9:05 am 
Andriy GaponFeb 6, 2009 9:14 am 
John BaldwinFeb 6, 2009 9:54 am 
John BaldwinFeb 6, 2009 9:54 am 
Andriy GaponFeb 9, 2009 5:28 am 
Subject:Re: Trimming the default /boot/device.hints
From:Andriy Gapon (av@icyb.net.ua)
Date:Feb 6, 2009 8:47:31 am
List:org.freebsd.freebsd-arch

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).