Subject: Re: 5000 kernels broken ?
To: None <port-pmax@netbsd.org>
From: Toru Nishimura <nisimura@itc.aist-nara.ac.jp>
List: port-pmax
Date: 09/28/1999 17:04:44
[ ... kernel locks up probing LANCE ... ]
It turned out I forgot an important change of pmax/tc/asic.c to step
further toward bus_space(9)/bus_dma(9).
Thank you for pointing out the error.
Tohru Nishimura
Nara Institute of Science and Technology
Index: asic.c
===================================================================
RCS file: /cvsroot/syssrc/sys/arch/pmax/tc/asic.c,v
retrieving revision 1.38
diff -r1.38 asic.c
185c185,192
< sc->sc_base = ta->ta_addr;
---
> sc->sc_bst = ta->ta_memt;
> if (bus_space_map(ta->ta_memt, ta->ta_addr,
> 0x400000, 0, &sc->sc_bsh)) {
> printf("%s: unable to map device\n", sc->sc_dv.dv_xname);
> return;
> }
> sc->sc_dmat = ta->ta_dmat;
> sc->sc_cookie = ta->ta_cookie;
187c194,195
< ioasic_base = sc->sc_base; /* XXX XXX XXX */
---
> sc->sc_base = ta->ta_addr; /* XXX XXX XXX */
> ioasic_base = sc->sc_base; /* XXX XXX XXX */
213c221
< return (u_char *)IOASIC_SYS_ETHER_ADDRESS(ioasic_base);
---
> return (char *)IOASIC_SYS_ETHER_ADDRESS(ioasic_base);