Date: Thu, 25 Sep 2003 11:18:51 -0700 (PDT) From: Marcel Moolenaar <marcel@FreeBSD.org> To: Perforce Change Reviews <perforce@freebsd.org> Subject: PERFORCE change 38586 for review Message-ID: <200309251818.h8PIIpVJ018917@repoman.freebsd.org>
index | next in thread | raw e-mail
http://perforce.freebsd.org/chv.cgi?CH=38586 Change 38586 by marcel@marcel_nfs on 2003/09/25 11:18:30 Reinitialize the tag and handle after reallocating the register resource. It is required on pc98 where tags and handles are dynamicly allocated when resources are allocated. Reuse of tags and handles after the resource has been deallocated or freed is invalid. Affected files ... .. //depot/projects/uart/dev/uart/uart_core.c#33 edit Differences ... ==== //depot/projects/uart/dev/uart/uart_core.c#33 (text+ko) ==== @@ -325,6 +325,8 @@ 0, ~0, sc->sc_class->uc_range, RF_ACTIVE); if (sc->sc_rres == NULL) return (ENXIO); + sc->sc_bas.bsh = rman_get_bushandle(sc->sc_rres); + sc->sc_bas.bst = rman_get_bustag(sc->sc_rres); sc->sc_irid = 0; sc->sc_ires = bus_alloc_resource(dev, SYS_RES_IRQ, &sc->sc_irid,help
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200309251818.h8PIIpVJ018917>
