<feed xmlns='http://www.w3.org/2005/Atom'>
<title>delta/syslinux.git/com32/include/cpuid.h, branch syslinux-3.53</title>
<subtitle>git.kernel.org: pub/scm/boot/syslinux/syslinux.git
</subtitle>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/syslinux.git/'/>
<entry>
<title>Adding a new com32 module to handle cpu information</title>
<updated>2006-09-05T20:53:38+00:00</updated>
<author>
<name>Erwan Velu</name>
<email>erwan@seanodes.com</email>
</author>
<published>2006-09-04T20:34:55+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/syslinux.git/commit/?id=1f675cf4298e2cb5dd5bc3be2c3649ac81d4fac6'/>
<id>1f675cf4298e2cb5dd5bc3be2c3649ac81d4fac6</id>
<content type='text'>
 From : Erwan Velu &lt;erwan.velu@free.fr&gt;
This patch a new com32 module to handle cpu information.
A new "cpu" structure can be filled by calling "detect_cpu(&amp;cpu)".

It provides :
- Vendor name as string
- Model as string
- Vendor as integer
- Model as integer
- Family as integer
- Stepping as Integer
- Flags as boolean
- SMP as boolean

Note that SMP is just a manner to know if the bios annonce an MPTABLE.
This code can't detect each processor.

I've been adding a demo program called cpuidtest to show how it works.

if (cpu.flags.lm == true) printf("This system is x86_64 compatible\n");
This example shows how to test if a system is X86_64 compatible.
I hope it's simple enough ;)

This code is mainly taken from the Linux Kernel.
Greetings for all the guys who wrote it.

Testing and feedback are welcome.

Signed-off-by:Erwan Velu &lt;erwan.velu@free.fr&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
 From : Erwan Velu &lt;erwan.velu@free.fr&gt;
This patch a new com32 module to handle cpu information.
A new "cpu" structure can be filled by calling "detect_cpu(&amp;cpu)".

It provides :
- Vendor name as string
- Model as string
- Vendor as integer
- Model as integer
- Family as integer
- Stepping as Integer
- Flags as boolean
- SMP as boolean

Note that SMP is just a manner to know if the bios annonce an MPTABLE.
This code can't detect each processor.

I've been adding a demo program called cpuidtest to show how it works.

if (cpu.flags.lm == true) printf("This system is x86_64 compatible\n");
This example shows how to test if a system is X86_64 compatible.
I hope it's simple enough ;)

This code is mainly taken from the Linux Kernel.
Greetings for all the guys who wrote it.

Testing and feedback are welcome.

Signed-off-by:Erwan Velu &lt;erwan.velu@free.fr&gt;
</pre>
</div>
</content>
</entry>
</feed>
