Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 01 Jul 2005 08:20:58 +0300
From:      Maxim Sobolev <sobomax@portaone.com>
To:        NAKATA Maho <chat95@mac.com>
Cc:        ports@FreeBSD.ORG
Subject:   Re: ATLAS, Prescott(P4E) and CPU detection by sysctl hw.model
Message-ID:  <42C4D2BA.2030103@portaone.com>
In-Reply-To: <20050701.115651.74756158.chat95@mac.com>
References:  <20050701.115651.74756158.chat95@mac.com>

next in thread | previous in thread | raw e-mail | index | archive | help
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@FreeBSD.org)
> 
> _______________________________________________
> freebsd-ports@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-ports
> To unsubscribe, send any mail to "freebsd-ports-unsubscribe@freebsd.org"
> 
> 




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