summaryrefslogtreecommitdiffstats
path: root/sys/ia64
diff options
context:
space:
mode:
authorimp <imp@FreeBSD.org>2006-04-20 04:18:30 +0000
committerimp <imp@FreeBSD.org>2006-04-20 04:18:30 +0000
commit34755358c7a8ab3b1a6e3c2e38273113d780aa25 (patch)
treed515c0fc76a30bd7bea1f3167af0dfc6d323f01e /sys/ia64
parent0e9911a7c4df3b620a19e7a374b9793e3ea534d9 (diff)
downloadFreeBSD-src-34755358c7a8ab3b1a6e3c2e38273113d780aa25.zip
FreeBSD-src-34755358c7a8ab3b1a6e3c2e38273113d780aa25.tar.gz
Set the rid of the resource obtained from rman_reserve_resource.
Diffstat (limited to 'sys/ia64')
-rw-r--r--sys/ia64/ia64/nexus.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/ia64/ia64/nexus.c b/sys/ia64/ia64/nexus.c
index faf400e..39bc3f9 100644
--- a/sys/ia64/ia64/nexus.c
+++ b/sys/ia64/ia64/nexus.c
@@ -401,6 +401,7 @@ nexus_alloc_resource(device_t bus, device_t child, int type, int *rid,
if (rv == 0)
return 0;
+ rman_set_rid(rv, *rid);
if (type == SYS_RES_MEMORY) {
rman_set_bustag(rv, IA64_BUS_SPACE_MEM);
} else if (type == SYS_RES_IOPORT) {
OpenPOWER on IntegriCloud