Re: F00F question

Jeff Epler (jepler@inetnebr.com)
Wed, 21 Apr 1999 20:15:34 -0500


On Thu, Apr 22, 1999 at 10:04:58AM +0930, Benjamin Close wrote:
> Hi all,
> sorry if this is off topic.
> Is there anyway to test if a cpu has the F00F bug (without hanging the
> machine if it does) if you don't knowing the type of cpu?
>
> (I know it's easy to find the cpu type but that's not the question)

>From reading the kernel source, it would appear that all and only Pentiums
are assumed to have the f00f bug. From the source of 2.2.6-ac1
include/asm-i386/bugs.h:

__initfunc(static void check_pentium_f00f(void))
{
/*
* Pentium and Pentium MMX
*/
boot_cpu_data.f00f_bug = 0;
if (boot_cpu_data.x86 == 5 && boot_cpu_data.x86_vendor ==
X86_VENDOR_INTEL) {
printk(KERN_INFO "Intel Pentium with F0 0F bug - workaround"
"enabled.\n");
boot_cpu_data.f00f_bug = 1;
trap_init_f00f_bug();
}
}

Jeff

-- 
\/ http://www.freshmeat.net/                     Jeff Epler jepler@inetnebr.com
Take a lesson from the whale; the only time he gets speared is when he
raises to spout.

- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.rutgers.edu Please read the FAQ at http://www.tux.org/lkml/