Subject: Re: __BROKEN_CONFIG_UNIT_USAGE
To: None <tech-kern@netbsd.org>
From: Christos Zoulas <christos@astron.com>
List: tech-kern
Date: 06/06/2006 00:18:45
In article <060606082156.M0114425@mirage.ceres.dti.ne.jp>,
Izumi Tsutsui  <tsutsui@ceres.dti.ne.jp> wrote:
>garrett_damore@tadpole.com wrote:
>
>> I notice that we still have the __BROKEN_CONFIG_UNIT_USAGE logic in
>> sys/kern/subr_autconf.c.
>> 
>> The sun3 port declares this macro, but it *appears* that it may not
>> actually require it.  It is not declared anywhere else.
>> 
>> I would like to propose removing the macro (and the code it enables). 
>> However, I lack sufficient experience to be 100% sure, so I am asking
>> for knowledgable parties to step forward and either approve the change,
>> or just make the change themselves -- or explain why this change is a
>> bad idea and will cause untold grief amongst millions of sun3 users... :-)
>
>IIUC, the abuse is in sun3/sun3/vme.c. It uses cf_unit to specify
>VME bus types. Of cource sun3 should switch to the MI vme driver,
>but we have to implement bus_space(9) for sun3 first.
>It should be trivial (see sun68k/sun68k/bus.c), but...

Let's do it. We can test with the emulator.

christos