cpuid - eax = 0x2
cpuid - eax = 0x2
I'm trying to find documentation as to the "function" number 2 of cpuid which gives information such as l2 cache size and etc. Looks like the web page on Intel's site is gone. Any help is appreciated.
Re:cpuid - eax = 0x2
Hi,
Please note that other CPU manufacturers do it a different way...
Cheers,
Brendan
Try this link (see page 17): http://bochs.sourceforge.net/techspec/24161821.pdfDruG5t0r3 wrote:I'm trying to find documentation as to the "function" number 2 of cpuid which gives information such as l2 cache size and etc. Looks like the web page on Intel's site is gone. Any help is appreciated.
Please note that other CPU manufacturers do it a different way...
Cheers,
Brendan
For all things; perfection is, and will always remain, impossible to achieve in practice. However; by striving for perfection we create things that are as perfect as practically possible. Let the pursuit of perfection be our guide.
Re:cpuid - eax = 0x2
thanks, thats like exactly what I needed. Only question is, why isn't that doc available on Intel's site?...
Re:cpuid - eax = 0x2
You can also try http://sandpile.org/ia32/cpuid.htm which contains a wealth of technical information, but now description on your own algorithm development and pitfalls to watch out for.
Re:cpuid - eax = 0x2
Hi,
I've attached this code - no copyright and no warranties (if you use it you own it).
Cheers,
Brendan
I can probably make this easier for everyone - my OS has CPU cache detection code that it uses for determining page colours for the memory managers.smiddy wrote: You can also try http://sandpile.org/ia32/cpuid.htm which contains a wealth of technical information, but now description on your own algorithm development and pitfalls to watch out for.
I've attached this code - no copyright and no warranties (if you use it you own it).
Cheers,
Brendan
For all things; perfection is, and will always remain, impossible to achieve in practice. However; by striving for perfection we create things that are as perfect as practically possible. Let the pursuit of perfection be our guide.