summaryrefslogtreecommitdiff
path: root/sys/arch/i386/stand/libsa
diff options
context:
space:
mode:
authorTobias Weingartner <weingart@cvs.openbsd.org>2003-07-07 07:42:52 +0000
committerTobias Weingartner <weingart@cvs.openbsd.org>2003-07-07 07:42:52 +0000
commit52930026d4246b77f9773ab3a5c2b1f2cdb4e064 (patch)
tree2eeaa45e528db2d29930d43fb3807b5a9e2f30c6 /sys/arch/i386/stand/libsa
parentba34687624cc3521415fded303d70042ba1a4f83 (diff)
Fix for PR 3177.
Diff from Otto Moerbeek <otto at drijf.net>, testing by same. Looked over, and other (outline testing) by me.
Diffstat (limited to 'sys/arch/i386/stand/libsa')
-rw-r--r--sys/arch/i386/stand/libsa/bioscons.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/sys/arch/i386/stand/libsa/bioscons.c b/sys/arch/i386/stand/libsa/bioscons.c
index 4457742ce81..934d91f9669 100644
--- a/sys/arch/i386/stand/libsa/bioscons.c
+++ b/sys/arch/i386/stand/libsa/bioscons.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: bioscons.c,v 1.22 2003/06/03 20:22:11 mickey Exp $ */
+/* $OpenBSD: bioscons.c,v 1.23 2003/07/07 07:42:51 weingart Exp $ */
/*
* Copyright (c) 1997-1999 Michael Shalayeff
@@ -164,7 +164,12 @@ comspeed(dev, sp)
if (115200 < sp || sp < 75)
return -1;
- for (i = sp; i != 75; i >>= 1)
+ /*
+ * Accepted speeds:
+ * 75 150 300 600 1200 2400 4800 9600 19200 38400 76800 and
+ * 14400 28800 57600 115200
+ */
+ for (i = sp; i != 75 && i != 14400; i >>= 1)
if (i & 1)
return -1;