Subject: Re: Checking for CPU feature from userland
To: Ross Harvey <ross@ghs.com>
From: David Brownlee <abs@netbsd.org>
List: port-i386
Date: 04/22/2001 22:49:11
On Sun, 22 Apr 2001, Ross Harvey wrote:

> > The "cpuid" instruction is not available on all x86 CPUs and it is not
> > easy to use.
>
> It's certainly difficult to use, yes. But being unavailable on old cpu's
> is not a problem, since it _is_ present on any chip that has mmx. You can
> just preset the output bits and catch any generated traps. But I guess you
> knew all of that.
>
> > I would prefer something like a sysctl(3) variable.
>
> That would be nice, if quite a bit less portable.

	How about a function to be added to libi386?
	(Not volunteering to contribute the code :)

		David/absolute		-- www.netbsd.org: No hype required --