Subject: Re: Checking for CPU feature from userland
To: None <port-i386@netbsd.org>
From: Matthias Scheler <tron@zhadum.de>
List: port-i386
Date: 04/22/2001 10:25:25
On Sun, Apr 22, 2001 at 01:23:14AM -0700, Ross Harvey wrote:
> 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.

Yes, I knew. And I still consider it an overkill for only finding out
if MMX can be turned on.

> > I would prefer something like a sysctl(3) variable.
> 
> That would be nice, if quite a bit less portable.

Not less portable than the programs current attempt to parse "/proc/cpuinfo".

	Kind regards

-- 
Matthias Scheler                                         http://core.de/~tron/