We need to adjust the bus handle if the resource is SYS_RES_MEMORY, NOT

SYS_RES_IOPORT.
This commit is contained in:
Olivier Houchard 2006-04-13 15:07:59 +00:00
parent b8986f5675
commit eb66942114

View File

@ -381,7 +381,8 @@ i80321_pci_alloc_resource(device_t bus, device_t child, int type, int *rid,
if (rv == NULL)
return (NULL);
if (type != SYS_RES_IRQ) {
bh += (rman_get_start(rv));
if (type == SYS_RES_MEMORY)
bh += (rman_get_start(rv));
rman_set_bustag(rv, bt);
rman_set_bushandle(rv, bh);
if (flags & RF_ACTIVE) {