On Sun, Nov 02, 2003 at 12:52:03PM +0000, Dave Jones wrote: > On Sun, Nov 02, 2003 at 01:57:48PM +0800, Geoffrey Lee wrote: > > > preempt_disable(); > > +#if CONFIG_MK7 > > + for (i=1; i > +#else > > for (i=0; i > +#endif > > rdmsr (MSR_IA32_MC0_STATUS+i*4, low, high); > > This needs to be a runtime check. In 2.6, a K7 can boot > a P4 kernel, and vice versa. > Yes, of course. Would it be sufficient to check for the boot_cpu_data.x86 == 6 and boot_cpu_data.x86_vendor == X86_VENDOR_AMD? This would seem to do the right thing. Updated patch attached. - g.