ATLAS, Prescott(P4E) and CPU detection by sysctl hw.model
Maxim Sobolev
sobomax at portaone.com
Fri Jul 1 05:22:30 GMT 2005
You can do it by writing small assembler routine which uses cpuid
instruction. This instruction is not privileged, so that you should not
have any problems with using it from the user-level program. Refer to
Intel documentation regarding how to use it properly. Also you can check
/sys/i386/i386/identcpu.c to see how to use it from the C code.
-Maxim
NAKATA Maho wrote:
> Dear all,
> I'm a maintainer of math/atlas, and math/atlas-devel.
> this ports automatically detects what CPU you use.
>
> I would like to ask you:
> if we use Prescott type CPU, how can we know it is a prescott?
> currently i use sysctl hw.model
>
> unfortunately I don't own one.
> thanks in advance,
> -- NAKATA, Maho (maho at FreeBSD.org)
>
> _______________________________________________
> freebsd-ports at freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-ports
> To unsubscribe, send any mail to "freebsd-ports-unsubscribe at freebsd.org"
>
>
More information about the freebsd-ports
mailing list