PERFORCE change 38586 for review
Marcel Moolenaar
marcel at FreeBSD.org
Thu Sep 25 11:18:54 PDT 2003
http://perforce.freebsd.org/chv.cgi?CH=38586
Change 38586 by marcel at 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,
More information about the p4-projects
mailing list