Bug 18154

Summary: [sysctl] [patch] Add cpu class and features flags sysctls
Product: Base System Reporter: toasty <toasty>
Component: i386Assignee: Remko Lodder <remko>
Status: Closed FIXED    
Severity: Affects Only Me    
Priority: Normal    
Version: Unspecified   
Hardware: Any   
OS: Any   
Attachments:
Description Flags
file.diff none

Description toasty 2000-04-22 09:20:01 UTC
Add the following sysctls:

hw.cpuclass  (defines are in <machine/cpuclass.h>)
hw.features.mmx
hw.features.3dnow
hw.features.simd


These are useful in deciding what library to use at runtime, when choosing
between C/x86 or plain x86/mmx/simd functions, without having knowledge of
anything CPU related.


Also, fixed a misplaced comment in identcpu.c
Comment 1 Garrett A. Wollman 2000-04-22 15:22:43 UTC
<<On Sat, 22 Apr 2000 03:13:16 -0500 (CDT), toasty@dragondata.com said:

> hw.features.mmx
> hw.features.3dnow

Sine these features are unlikely to be shared by other architectures
FreeBSD runs on, they should be in the machdep.* branch and not hw.

-GAWollman
Comment 2 toasty 2000-04-22 16:15:03 UTC
> > hw.features.mmx
> > hw.features.3dnow
> 
> Sine these features are unlikely to be shared by other architectures
> FreeBSD runs on, they should be in the machdep.* branch and not hw.
> 
> -GAWollman
> 
> 

Ok, I wasn't quite sure where the line was drawn. My thoughts there could be
a hw.features node for all architectures, and what was under it could vary.
But, I see the the argument either way. Doesn't really matter to me. :)

-- Kevin
Comment 3 Remko Lodder freebsd_committer freebsd_triage 2006-09-05 11:57:15 UTC
State Changed
From-To: open->feedback

Is this still an ongoing item? It had been a long time since 
the PR got filed and someone responded.  Thanks for letting 
me know in advance! 


Comment 4 Remko Lodder freebsd_committer freebsd_triage 2006-09-05 11:57:15 UTC
Responsible Changed
From-To: freebsd-i386->remko

Grab the PR
Comment 5 Remko Lodder freebsd_committer freebsd_triage 2006-09-11 11:07:04 UTC
State Changed
From-To: feedback->closed

feedback timeout