Set the rid for a resoruce allocated with rman_reserve_resource.
This commit is contained in:
parent
d49b1fe00a
commit
0e9911a7c4
@ -340,7 +340,7 @@ nexus_alloc_resource(device_t bus, device_t child, int type, int *rid,
|
||||
rv = rman_reserve_resource(rm, start, end, count, flags, child);
|
||||
if (rv == 0)
|
||||
return 0;
|
||||
|
||||
rman_set_rid(rv, *rid);
|
||||
if (type == SYS_RES_MEMORY) {
|
||||
rman_set_bustag(rv, AMD64_BUS_SPACE_MEM);
|
||||
} else if (type == SYS_RES_IOPORT) {
|
||||
|
Loading…
Reference in New Issue
Block a user