diff options
author | imp <imp@FreeBSD.org> | 2006-04-20 04:20:41 +0000 |
---|---|---|
committer | imp <imp@FreeBSD.org> | 2006-04-20 04:20:41 +0000 |
commit | cdc20c723d13a2238fdac88bccf7dbb2a54e8778 (patch) | |
tree | 116aef612e128acb10af4e41d3ae3bec7e0d9b53 /sys/sparc64/ebus | |
parent | 897af5156bfc8a6dd2e6d4b68aafed08ada6fe1f (diff) | |
download | FreeBSD-src-cdc20c723d13a2238fdac88bccf7dbb2a54e8778.zip FreeBSD-src-cdc20c723d13a2238fdac88bccf7dbb2a54e8778.tar.gz |
Set the rid for any resource obtained from rman_reserve_resource.
Reviewed by: wollman, jmg (as were the other commits fixing this problem)
Diffstat (limited to 'sys/sparc64/ebus')
-rw-r--r-- | sys/sparc64/ebus/ebus.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/sparc64/ebus/ebus.c b/sys/sparc64/ebus/ebus.c index 29a8200..7fb8a3a 100644 --- a/sys/sparc64/ebus/ebus.c +++ b/sys/sparc64/ebus/ebus.c @@ -321,6 +321,7 @@ ebus_alloc_resource(device_t bus, device_t child, int type, int *rid, flags, child); if (res == NULL) return (NULL); + rman_set_rid(res, *rid); bt = rman_get_bustag(ri->eri_res); rman_set_bustag(res, bt); rv = bus_space_subregion(bt, rman_get_bushandle(ri->eri_res), |