summaryrefslogtreecommitdiffstats
path: root/sys/dev/ed
diff options
context:
space:
mode:
authornyan <nyan@FreeBSD.org>2006-02-21 12:01:39 +0000
committernyan <nyan@FreeBSD.org>2006-02-21 12:01:39 +0000
commit895ec9cce0dbdfb3780e9702d4728c5d5227d771 (patch)
tree4fd75636403584dbde478bc7f84ed04e4f666b72 /sys/dev/ed
parent9b942bc060572b2570cd123921b5597df3c9aada (diff)
downloadFreeBSD-src-895ec9cce0dbdfb3780e9702d4728c5d5227d771.zip
FreeBSD-src-895ec9cce0dbdfb3780e9702d4728c5d5227d771.tar.gz
Initialize the port_bst and port_bsh variables.
The ed driver on pc98 was broken by if_edvar.h rev1.31. Reported by: Kaho Toshikazu (kaho at elam kais kyoto-u ac jp) Tested by: Eiji Kato (ekato at a1 mbn or jp) MFC after: 3 days
Diffstat (limited to 'sys/dev/ed')
-rw-r--r--sys/dev/ed/if_ed_cbus.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/dev/ed/if_ed_cbus.c b/sys/dev/ed/if_ed_cbus.c
index 5de878a..f0ac744 100644
--- a/sys/dev/ed/if_ed_cbus.c
+++ b/sys/dev/ed/if_ed_cbus.c
@@ -541,6 +541,8 @@ ed98_alloc_port(device_t dev, int rid)
sc->port_rid = rid;
sc->port_res = res;
sc->port_used = n;
+ sc->port_bst = rman_get_bustag(res);
+ sc->port_bsh = rman_get_bushandle(res);
/* Re-map i/o table if needed */
switch (sc->type) {
OpenPOWER on IntegriCloud