Oops, you're right, it's the FreeBSD code that uses do_cpuid().
-- D

Urias McCullough wrote:
> On Wed, Jul 15, 2009 at 3:00 PM, David Anderson<[email protected]> wrote:
>> The Linux code for CPU feature detection
>> (hostinfo_unix.cpp, starting at line 587) looks out of date.
>> However, I can't find any documentation of do_cpuid().
>> If someone wants to update this code, feel free.
> 
> Pretty certain that's a FreeBSD only section (see the #ifdef on line
> 581) - I was only using it as an example that some platforms don't
> rely on the OS. do_cpuid() likely calls the cpuid instruction(s)
> directly to get info from the processor.
> 
> Linux appears to use /proc/cpuinfo now:
> http://boinc.berkeley.edu/trac/browser/trunk/boinc/client/hostinfo_unix.cpp#L400
> 
> Which I find quite horrible, but I wouldn't know of an alternative :)
> 
> - Urias

_______________________________________________
boinc_dev mailing list
[email protected]
http://lists.ssl.berkeley.edu/mailman/listinfo/boinc_dev
To unsubscribe, visit the above URL and
(near bottom of page) enter your email address.

Reply via email to