From 52930026d4246b77f9773ab3a5c2b1f2cdb4e064 Mon Sep 17 00:00:00 2001 From: Tobias Weingartner Date: Mon, 7 Jul 2003 07:42:52 +0000 Subject: Fix for PR 3177. Diff from Otto Moerbeek , testing by same. Looked over, and other (outline testing) by me. --- sys/arch/i386/stand/libsa/bioscons.c | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'sys/arch') 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; -- cgit v1.2.3