Use the correct speed in the delay for the transmission of a character

in the loopback test in the probe.  The delay was too short for consoles
at speeds lower than about 3200 bps.  This shouldn't have caused many
problems, since such low speeds are rare and the probe is forced to
succeed for consoles.
This commit is contained in:
Bruce Evans 2003-09-26 11:36:09 +00:00
parent 2f06c3e7f2
commit 3a6a55a60b

View File

@ -694,7 +694,10 @@ sioprobe(dev, xrid, rclk, noprobe)
* it's unlikely to do more than allow the null byte out.
*/
sio_setreg(com, com_data, 0);
DELAY((1 + 2) * 1000000 / (SIO_TEST_SPEED / 10));
if (iobase == siocniobase)
DELAY((1 + 2) * 1000000 / (comdefaultrate / 10));
else
DELAY((1 + 2) * 1000000 / (SIO_TEST_SPEED / 10));
/*
* Turn off loopback mode so that the interrupt gate works again