i386/62595: npx.c do not compiles without ISA bus configured

Bruce Evans bde at zeta.org.au
Mon Feb 9 18:30:21 PST 2004


The following reply was made to PR i386/62595; it has been noted by GNATS.

From: Bruce Evans <bde at zeta.org.au>
To: Radim Kolar <hsn at netmag.cz>
Cc: FreeBSD-gnats-submit at freebsd.org, freebsd-i386 at freebsd.org
Subject: Re: i386/62595: npx.c do not compiles without ISA bus configured
Date: Tue, 10 Feb 2004 13:20:17 +1100 (EST)

 On Sun, 8 Feb 2004, Radim Kolar wrote:
 
 > >Description:
 > If you don't have 'device isa' entry in kernel configuration, kernel
 > build will fail in npx driver. I want to build a smallest possible kernel,
 > so i have commeted isa bus out.
 
 Try this patch.  i386 require isa so leaving it out will give a kernel
 hat won't actually work, however.  The NPX_ISA ifdefs in npx.c basically
 leave out isa-pnp, not isa, and some i386 kernels configured without isa
 can only be linked because not configuring it doesn't actually leave out
 all the isa bits.
 
 %%%
 Index: npx.c
 ===================================================================
 RCS file: /home/ncvs/src/sys/i386/isa/npx.c,v
 retrieving revision 1.144
 diff -u -2 -r1.144 npx.c
 --- npx.c	3 Nov 2003 21:53:38 -0000	1.144
 +++ npx.c	10 Feb 2004 01:30:35 -0000
 @@ -1038,5 +1038,4 @@
  static devclass_t npx_devclass;
 
 -#ifdef DEV_ISA
  /*
   * We prefer to attach to the root nexus so that the usual case (exception 16)
 @@ -1045,4 +1044,5 @@
  DRIVER_MODULE(npx, nexus, npx_driver, npx_devclass, 0, 0);
 
 +#ifdef DEV_ISA
  /*
   * This sucks up the legacy ISA support assignments from PNPBIOS/ACPI.
 %%%
 
 Bruce


More information about the freebsd-i386 mailing list