RFC: Adding a hw.features[2] sysctl

From: Joe Marcus Clarke <marcus_at_FreeBSD.org>
Date: Sat, 12 Jan 2008 23:16:27 -0500
I find it would be useful to have the list of CPU features available via
a sysctl.  Currently, he only ways to get this information are to have
linprocfs mounted, or parse dmesg.boot (if it exists).  Attached are
patches to add hw.features and hw.features2 sysctls for i386 and amd64
(where a list of CPU features is applicable).  The results are identical
to the Features and Features2 strings from dmesg:

hw.features2: 0x41d<SSE3,RSVD2,MON,DS_CPL,CNXT-ID>
hw.features:
0xbfebfbff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CLFLUSH,DTS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE>

Comments?

Joe

-- 
Joe Marcus Clarke
FreeBSD GNOME Team      ::      gnome_at_FreeBSD.org
FreeNode / #freebsd-gnome
http://www.FreeBSD.org/gnome

Received on Sun Jan 13 2008 - 03:16:04 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:39:25 UTC