diff options
author | se <se@FreeBSD.org> | 1999-01-19 23:29:20 +0000 |
---|---|---|
committer | se <se@FreeBSD.org> | 1999-01-19 23:29:20 +0000 |
commit | 2142e794d720c024a10ed406c58af94d4dd0ab6b (patch) | |
tree | 7fe02de1c4a8aa39ce6e7823fa18def84b54a456 /sys/pci/pci.c | |
parent | 1b9be3b5a8aed57d7ee12ba5025079529ea33d28 (diff) | |
download | FreeBSD-src-2142e794d720c024a10ed406c58af94d4dd0ab6b.zip FreeBSD-src-2142e794d720c024a10ed406c58af94d4dd0ab6b.tar.gz |
Fix problem with zero valued map registers followed by valid map entries.
The previous code just ignored the invalid map register, but this gave
surprising results because of the way pci_map_port() associated the map
register offset supplied with a map entry in the map array.
Diffstat (limited to 'sys/pci/pci.c')
-rw-r--r-- | sys/pci/pci.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/pci/pci.c b/sys/pci/pci.c index 447570c..73b8142 100644 --- a/sys/pci/pci.c +++ b/sys/pci/pci.c @@ -23,7 +23,7 @@ * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. * - * $Id: pci.c,v 1.91 1998/11/09 08:08:06 peter Exp $ + * $Id: pci.c,v 1.92 1999/01/12 01:44:42 eivind Exp $ * */ @@ -190,6 +190,7 @@ pci_readmaps(pcicfgregs *cfg, int maxmaps) testval = pci_cfgread(cfg, reg, 4); pci_cfgwrite(cfg, reg, base, 4); + map[j].reg = reg; map[j].base = pci_mapbase(base); map[j].type = pci_maptype(base); map[j].ln2size = pci_mapsize(testval); |