Subject: port-i386/1936: autoconfig "*" wildcards aren't supported for ISA devices
To: None <gnats-bugs@gnats.netbsd.org>
From: Scott Reynolds <scottr@Plexus.COM>
List: netbsd-bugs
Date: 01/12/1996 16:47:51
>Number: 1936
>Category: port-i386
>Synopsis: autoconfig "*" wildcards aren't supported for ISA devices
>Confidential: no
>Severity: serious
>Priority: low
>Responsible: gnats-admin (GNATS administrator)
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Fri Jan 12 18:05:01 1996
>Last-Modified:
>Originator: Scott Reynolds
>Organization:
Scott Reynolds Scott.Reynolds@plexus.com
>Release: 1.1
>Environment:
Micronics 486DX/2-66 system, two 3Com 3C509B ethernet cards,
running NetBSD/i386.
System: NetBSD aqua 1.1 NetBSD 1.1 (TGI) #121: Tue Jan 9 16:26:41 CST 1996 root@aqua:/usr/src/sys/arch/i386/compile/TGI i386
>Description:
I recently got bit when I replaced a 3C503 in my system with a
3C509B, giving me a total of two of the latter. I config'ed a
kernel with ep* instead of two separate ep0 and ep1 devices, and
on boot, my machine panic'd.
>How-To-Repeat:
Configure an ISA device using a "*"; for example:
ahb* at isa? port ? irq ? # Adaptec 174[024] SCSI controllers
ep* at isa? port 0x300 irq ? # 3C509 ethernet cards
Compile the kernel.
Run, kernel, run!
See kernel panic.
>Fix:
I don't have a fix, but a more informative message would be helpful.
*** sys/dev/isa/isa.c-dist Fri Oct 13 21:38:56 1995
--- sys/dev/isa/isa.c Fri Jan 12 16:32:28 1996
***************
*** 71,77 ****
struct isa_attach_args ia;
if (cf->cf_fstate == FSTATE_STAR)
! panic("not bloody likely");
ia.ia_iobase = cf->cf_loc[0];
ia.ia_iosize = 0x666;
--- 71,77 ----
struct isa_attach_args ia;
if (cf->cf_fstate == FSTATE_STAR)
! panic("can't use * in ISA device config");
ia.ia_iobase = cf->cf_loc[0];
ia.ia_iosize = 0x666;
>Audit-Trail:
>Unformatted: