Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 13 Jan 2008 12:21:02 +0000
From:      "Igor Mozolevsky" <igor@hybrid-lab.co.uk>
To:        "Joe Marcus Clarke" <marcus@freebsd.org>
Cc:        current <current@freebsd.org>
Subject:   Re: RFC: Adding a hw.features[2] sysctl
Message-ID:  <a2b6592c0801130421y11982f77y7373fbe12c900496@mail.gmail.com>
In-Reply-To: <1200197787.67286.13.camel@shumai.marcuscom.com>
References:  <1200197787.67286.13.camel@shumai.marcuscom.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On 13/01/2008, Joe Marcus Clarke <marcus@freebsd.org> wrote:
> 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?

Would /dev/cpuinfo not be more appropriate for this?


Igor



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?a2b6592c0801130421y11982f77y7373fbe12c900496>