summaryrefslogtreecommitdiffstats
path: root/sys
diff options
context:
space:
mode:
authorn_hibma <n_hibma@FreeBSD.org>2002-06-23 18:57:53 +0000
committern_hibma <n_hibma@FreeBSD.org>2002-06-23 18:57:53 +0000
commit383e92b79afec1037da724af750d9cf1074aa34b (patch)
tree630f0a0e81ef8182399ac34d6700871574036a6b /sys
parentabb73c48ca5ef431b3c9c5688b34606fc1386019 (diff)
downloadFreeBSD-src-383e92b79afec1037da724af750d9cf1074aa34b.zip
FreeBSD-src-383e92b79afec1037da724af750d9cf1074aa34b.tar.gz
set siocnunit to the correct value. This fixes the freeze on boot for
alphas. Submitted by: Bernd Walter <ticso@cicely5.cicely.de>
Diffstat (limited to 'sys')
-rw-r--r--sys/dev/sio/sio.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/sys/dev/sio/sio.c b/sys/dev/sio/sio.c
index cc310c6..de38f2f 100644
--- a/sys/dev/sio/sio.c
+++ b/sys/dev/sio/sio.c
@@ -3037,11 +3037,13 @@ siocnattach(port, speed)
u_char cfcr;
u_int divisor;
struct siocnstate sp;
+ int unit = 0; /* XXX random value! */
siocniobase = port;
+ siocnunit = unit;
comdefaultrate = speed;
sio_consdev.cn_pri = CN_NORMAL;
- sio_consdev.cn_dev = makedev(CDEV_MAJOR, 0);
+ sio_consdev.cn_dev = makedev(CDEV_MAJOR, unit);
s = spltty();
@@ -3077,7 +3079,7 @@ siogdbattach(port, speed)
u_char cfcr;
u_int divisor;
struct siocnstate sp;
- int unit = 1; /* XXX !!! */
+ int unit = 1; /* XXX random value! */
siogdbiobase = port;
gdbdefaultrate = speed;
OpenPOWER on IntegriCloud