set siocnunit to the correct value. This fixes the freeze on boot for

alphas.

Submitted by:		 Bernd Walter <ticso@cicely5.cicely.de>
This commit is contained in:
Nick Hibma 2002-06-23 18:57:53 +00:00
parent 0a84e7c8f7
commit befd9c61ce

View File

@ -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;