diff options
author | n_hibma <n_hibma@FreeBSD.org> | 2002-06-23 18:57:53 +0000 |
---|---|---|
committer | n_hibma <n_hibma@FreeBSD.org> | 2002-06-23 18:57:53 +0000 |
commit | 383e92b79afec1037da724af750d9cf1074aa34b (patch) | |
tree | 630f0a0e81ef8182399ac34d6700871574036a6b /sys/dev | |
parent | abb73c48ca5ef431b3c9c5688b34606fc1386019 (diff) | |
download | FreeBSD-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/dev')
-rw-r--r-- | sys/dev/sio/sio.c | 6 |
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; |