From owner-freebsd-hackers Wed Jan 30 21:37:43 2002 Delivered-To: freebsd-hackers@freebsd.org Received: from rover.village.org (rover.bsdimp.com [204.144.255.66]) by hub.freebsd.org (Postfix) with ESMTP id 448C137B400; Wed, 30 Jan 2002 21:37:40 -0800 (PST) Received: from harmony.village.org (harmony.village.org [10.0.0.6]) by rover.village.org (8.11.3/8.11.3) with ESMTP id g0V5bdo33482; Wed, 30 Jan 2002 22:37:39 -0700 (MST) (envelope-from imp@village.org) Received: from localhost (warner@rover2.village.org [10.0.0.1]) by harmony.village.org (8.11.6/8.11.6) with ESMTP id g0V5bbx29232; Wed, 30 Jan 2002 22:37:38 -0700 (MST) (envelope-from imp@village.org) Date: Wed, 30 Jan 2002 22:37:10 -0700 (MST) Message-Id: <20020130.223710.28874835.imp@village.org> To: obrien@FreeBSD.ORG Cc: hackers@FreeBSD.ORG Subject: Re: JKH - Jr. Kernel Hacker task From: "M. Warner Losh" In-Reply-To: <20020130175612.A81402@dragon.nuxi.com> References: <20020130175612.A81402@dragon.nuxi.com> X-Mailer: Mew version 2.1 on Emacs 21.1 / Mule 5.0 (SAKAKI) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG In message: <20020130175612.A81402@dragon.nuxi.com> "David O'Brien" writes: : Right now one must hardcode compile the BPS rate into the kernel for : serial consoles. This is just ridden with problems when machines move, : or configurations shared. : : It would be really nice if the kernel would get the BPS rate from a : loader environmental var instead of having it hard coded. Does this patch work: Index: sio.c =================================================================== RCS file: /cache/ncvs/src/sys/dev/sio/sio.c,v retrieving revision 1.362 diff -u -r1.362 sio.c --- sio.c 17 Jan 2002 20:05:47 -0000 1.362 +++ sio.c 31 Jan 2002 05:35:16 -0000 @@ -431,6 +431,7 @@ SYSCTL_PROC(_machdep, OID_AUTO, conspeed, CTLTYPE_INT | CTLFLAG_RW, 0, 0, sysctl_machdep_comdefaultrate, "I", ""); +TUNABLE_INT("machdep.conspeed", &comdefaultrate); #define SET_FLAG(dev, bit) device_set_flags(dev, device_get_flags(dev) | (bit)) #define CLR_FLAG(dev, bit) device_set_flags(dev, device_get_flags(dev) & ~(bit)) Warner To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message