Subject: Re: compiling isp.c on alpha failed...
To: None <paul@whooppee.com>
From: Matthew Jacob <lydianconcepts@gmail.com>
List: current-users
Date: 07/07/2007 21:47:20
argh - sorry- i just checked big endian this tme

On 7/7/07, Paul Goyette <paul@whooppee.com> wrote:
> Same error occurs on both amd64 and i386
>
> On Sun, 8 Jul 2007, Kurt Schreiner wrote:
>
> > Hi,
> >
> > trying to compile a new kernel on my XP1000 failed:
> >
> >    compile  XP1000/isp.o
> > cc1: warnings being treated as errors
> > /u/NetBSD/src/sys/dev/ic/isp.c: In function 'isp_rd_2400_nvram':
> > /u/NetBSD/src/sys/dev/ic/isp.c:7550: warning: implicit declaration of function 'ISP_SWIZZLE_NVRAM_LO
> > NG'
> > --- isp.o ---
> > *** [isp.o] Error code 1
> > 1 error
> >
> > This is remedied by adding a definiton for ISP_SWIZZLE_NVRAM_LONG in the
> > little-endian case in sys/dev/ic/isp_netbsd.h, too (see the following
> > patch; a kernel with this patch with the root disk on isp0 is running
> > fine...).
> >
> > --- /tmp/isp_netbsd.h   2007-07-07 12:53:41.000000000 +0200
> > +++ /usr/src/sys/dev/ic/isp_netbsd.h    2007-07-07 23:50:10.000000000 +0200
> > @@ -292,6 +292,7 @@
> > #define        ISP_IOXGET_16(isp, s, d)        d = *(s)
> > #define        ISP_IOXGET_32(isp, s, d)        d = *(s)
> > #define        ISP_SWIZZLE_NVRAM_WORD(isp, rp)
> > +#define        ISP_SWIZZLE_NVRAM_LONG(isp, rp)
> >
> > #define        ISP_IOZPUT_8(isp, s, d)         *(d) = s
> > #define        ISP_IOZPUT_16(isp, s, d)        *(d) = bswap16(s)
> >
> >
> > Kurt
> >
>
> ----------------------------------------------------------------------
> |   Paul Goyette   | PGP DSS Key fingerprint: |  E-mail addresses:   |
> | Customer Service | FA29 0E3B 35AF E8AE 6651 |  paul@whooppee.com   |
> | Network Engineer | 0786 F758 55DE 53BA 7731 | pgoyette@juniper.net |
> ----------------------------------------------------------------------
>