From 1a3e8e95912b75185dd024aa6bf9f758afecbc24 Mon Sep 17 00:00:00 2001 From: bde Date: Fri, 26 Sep 2003 11:36:09 +0000 Subject: 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. --- sys/dev/sio/sio.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'sys/dev/sio') diff --git a/sys/dev/sio/sio.c b/sys/dev/sio/sio.c index 7f8e586..63e4aae 100644 --- a/sys/dev/sio/sio.c +++ b/sys/dev/sio/sio.c @@ -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 -- cgit v1.1