From owner-freebsd-hackers Thu Jan 31 7:59:53 2002 Delivered-To: freebsd-hackers@freebsd.org Received: from fledge.watson.org (fledge.watson.org [204.156.12.50]) by hub.freebsd.org (Postfix) with ESMTP id C775737B404; Thu, 31 Jan 2002 07:59:34 -0800 (PST) Received: from fledge.watson.org (fledge.pr.watson.org [192.0.2.3]) by fledge.watson.org (8.11.6/8.11.5) with SMTP id g0VFxOD80939; Thu, 31 Jan 2002 10:59:24 -0500 (EST) (envelope-from robert@fledge.watson.org) Date: Thu, 31 Jan 2002 10:59:24 -0500 (EST) From: Robert Watson X-Sender: robert@fledge.watson.org To: "M. Warner Losh" Cc: obrien@FreeBSD.ORG, hackers@FreeBSD.ORG Subject: Re: JKH - Jr. Kernel Hacker task In-Reply-To: <20020130.223710.28874835.imp@village.org> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII 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 I'm sorry Warner, but your submission has been rejected on the basis that you are a Senior Kernel Hacker. :-) Robert N M Watson FreeBSD Core Team, TrustedBSD Project robert@fledge.watson.org NAI Labs, Safeport Network Services On Wed, 30 Jan 2002, M. Warner Losh wrote: > 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 > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message