Subject: Re: 'sys/arch/mac68k/mac68k/machdep.c' fails without zs(4)
To: None <ed@il.fontys.nl, port-mac68k@NetBSD.org>
From: Gene ENonymous <yancm@sdf.lonestar.org>
List: port-mac68k
Date: 12/14/2004 16:10:42
Also macrom.c in my situation (my first try at a patch file attached
below). I'm kinda new to kernel compiling, but I was having the same issue
(more or less) on a Centris 650, 40M RAM, 68040 (with f/p support).
I got the same error there, but also in macrom.c
I assume the conditional compile check proposed by Ed was the right one to
use (since I saw no naysays I assumed it mustn't be horrible).
Thanks,
gene
--- macrom.c 2004-12-13 03:13:53.000000000 +0000
+++ macrom.c.orig 2004-12-13 03:02:31.000000000 +0000
@@ -952,9 +952,7 @@
jADBOp = (void (*)(void))mrg_OStraps[0x7c];
mrg_VIA2 = (caddr_t)(Via1Base + VIA2 * 0x2000); /* see via.h */
-#if NZSC > 0
SCCRd = (caddr_t)sccA; /* ser.c ; we run before serinit */
-#endif
jDTInstall = (caddr_t)mrg_DTInstall;
> From: Ed Schouten <ed@il.fontys.nl>
> Date: Sat, 11 Dec 2004 10:10:58 +0100
> Subject: 'sys/arch/mac68k/mac68k/machdep.c' fails without zs(4)
>
>
> --SUOF0GtieIMvvwua
> Content-Type: text/plain; charset=us-ascii
> Content-Disposition: inline
> Content-Transfer-Encoding: quoted-printable
>
> Hello guys,
>
> I was trying to build a new kernel for my Quadra 650 tonight. When I woke
> up, I saw that machdep.c didn't compile because I did not specify zs(4) in
> my config. Because I really really don't need zs(4) on my machine, I built a
> small patch for it, which I attached below this message.
>
> Yours sincerely,
> --=20
> _________________=20
> / Ed Schouten \
> \ ed@il.fontys.nl /
> -----------------=20
> \ ,__,
> \ (oo)____
> (__) )\
> ||--|| *
>
> --
>
> machdep.c | 14 ++++++++++++++
> 1 files changed, 14 insertions(+)
>
> --- /root/machdep.c Sat Dec 11 10:03:58 2004
> +++ machdep.c Sat Dec 11 10:05:09 2004
> @@ -2302,14 +2302,18 @@
> Via1Base =3D (volatile u_char *)base;
> =20
> /* The following two may be overridden. */
> +#if NZSC > 0
> sccA =3D (volatile u_char *)base + 0xc000;
> +#endif
> SCSIBase =3D base + 0xf000;
> =20
> switch (current_mac_model->machineid) {
> case MACH_MACQ900:
> case MACH_MACQ950:
> mac68k_machine.scsi96_2 =3D 1;
> +#if NZSC > 0
> sccA =3D (volatile u_char *)base + 0xc020;
> +#endif
> iop_init(0); /* For console */
> break;
> case MACH_MACQ700:
> @@ -2326,7 +2330,9 @@
> * Quadra-type machines.
> */
> Via1Base =3D (volatile u_char *)base;
> +#if NZSC > 0
> sccA =3D (volatile u_char *)base + 0xc020;
> +#endif
> SCSIBase =3D base + 0x10000;
> break;
> case MACH_CLASSP580:
> @@ -2335,12 +2341,16 @@
> * the two different Quadra classes.
> */
> Via1Base =3D (volatile u_char *) base;
> +#if NZSC > 0
> sccA =3D (volatile u_char *) base + 0xc020;
> +#endif
> SCSIBase =3D base;
> break;
> case MACH_CLASSAV:
> Via1Base =3D (volatile u_char *)base;
> +#if NZSC > 0
> sccA =3D (volatile u_char *)base + 0x4000;
> +#endif
> SCSIBase =3D base + 0x18000;
> PSCBase =3D (volatile u_char *)base + 0x31000;
> break;
> @@ -2352,7 +2362,9 @@
> case MACH_CLASSIIvx:
> case MACH_CLASSLC:
> Via1Base =3D (volatile u_char *)base;
> +#if NZSC > 0
> sccA =3D (volatile u_char *) base + 0x4000;
> +#endif
> SCSIBase =3D base;
> break;
> case MACH_CLASSIIfx:
> @@ -2362,7 +2374,9 @@
> * the Serial Switch control panel before booting).
> */
> Via1Base =3D (volatile u_char *)base;
> +#if NZSC > 0
> sccA =3D (volatile u_char *)base + 0x4020;
> +#endif
> SCSIBase =3D base;
> iop_init(0); /* For console */
> break;
>
> --SUOF0GtieIMvvwua
> Content-Type: application/pgp-signature
> Content-Disposition: inline
>
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.2.6 (FreeBSD)
>
> iD8DBQFBurmiyx16ydahrz4RAvlXAJ93FFNRdXn0X6DqJ4xmHgybY3VwSgCfVI4p
> eO9jt0vlacurgNMaXkJhQfI=
> =l3st
> -----END PGP SIGNATURE-----
>
> --SUOF0GtieIMvvwua--
>