Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 12 Feb 2002 17:09:54 +0000 (GMT)
From:      Mike Silbersack <silby@silby.com>
To:        David Malone <dwmalone@maths.tcd.ie>
Cc:        cvs-committers@FreeBSD.org, <cvs-all@FreeBSD.org>
Subject:   Re: cvs commit: src/sys/conf options.i386 options.pc98 src/sys/i386/conf NOTES src/sys/i386/i386 initcpu.c 
Message-ID:  <20020212170729.P2904-100000@patrocles.silby.com>
In-Reply-To: <200202122210.aa14625@salmon.maths.tcd.ie>

next in thread | previous in thread | raw e-mail | index | archive | help

On Tue, 12 Feb 2002, David Malone wrote:

> > Could you make this a loader tunable?  Recompiling a kernel just for a few
> > lines of code is a huge pain.
>
> Since it is a hack for borked BIOS code, I think having it as an
> option is probably fine (just like all the other magic CPU options).
> Adding the option to GENERIC and reconfiguring only results in the
> recompilation of 3/4 files.
>
> If people feel that it would really be more useful as a tunable,
> then I can figure out how that is done.
>
> 	David.

As easy as recompiling a kernel is, just setting a variable in loader.conf
and rebooting is a lot easier.

The code's simple:

int athlonenablesse;

TUNABLE_INT_FETCH("workaround.broken.athlon.bios.that.didnt.set.sse",
	&athlonenablesse);

And then trigger based off that variable.  Its value should not change if
the tunable isn't found.  You may also wish to consider a shorter tunable
name. :)

Mike "Silby" Silbersack


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe cvs-all" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20020212170729.P2904-100000>