Set the rid for a resoruce allocated with rman_reserve_resource.

This commit is contained in:
imp 2006-04-20 04:16:34 +00:00
parent d49b1fe00a
commit 0e9911a7c4

View File

@ -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) {