Subject: port-arc/32916: arc device_register() abuses dv_unit
To: None <port-arc-maintainer@netbsd.org, gnats-admin@netbsd.org,>
From: None <thorpej@shagadelic.org>
List: netbsd-bugs
Date: 02/23/2006 17:40:00
>Number: 32916
>Category: port-arc
>Synopsis: arc device_register() abuses dv_unit
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: port-arc-maintainer
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Thu Feb 23 17:40:00 +0000 2006
>Originator: Jason R Thorpe
>Release: NetBSD-current 20060223
>Organization:
-- Jason R. Thorpe <thorpej@shagadelic.org>
>Environment:
>Description:
The arc port's device_register() abuses dv_unit to match the
scsibus instance during boot device detection. The problem is
that there is no way to guarantee that ARCBIOS's unit number
corresponds to NetBSD's unit number.
>How-To-Repeat:
Code inspection.
>Fix: