mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-20 11:11:24 +00:00
We need to adjust the bus handle if the resource is SYS_RES_MEMORY, NOT
SYS_RES_IOPORT.
This commit is contained in:
parent
b8986f5675
commit
eb66942114
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=157726
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user