diff -u --recursive linux-orig/arch/i386/kernel/setup.c linux/arch/i386/kernel/setup.c --- linux-orig/arch/i386/kernel/setup.c Wed Sep 19 22:49:11 2001 +++ linux/arch/i386/kernel/setup.c Fri Sep 21 01:23:22 2001 @@ -1272,6 +1272,21 @@ case 6: /* An Athlon/Duron. We can trust the BIOS probably */ mcheck_init(c); + + /* Bit 15 of Athlon specific MSR 15, needs to be 0 + * to enable SSE on Palomino/Morgan CPU's. + * If the BIOS didn't enable it already, enable it + * here. + */ + if (c->x86_model == 6 || c->x86_model == 7) { + if (!test_bit(X86_FEATURE_XMM, &c->x86_capability)) { + printk(KERN_INFO "Enabling K7/SSE support, since BIOS did not\n"); + rdmsr(MSR_K7_HWCR, l, h); + l &= ~0x00008000; + wrmsr(MSR_K7_HWCR, l, h); + set_bit(X86_FEATURE_XMM, &c->x86_capability); + } + } break; } diff -u --recursive linux-orig/include/asm-i386/msr.h linux/include/asm-i386/msr.h --- linux-orig/include/asm-i386/msr.h Wed Sep 19 22:49:27 2001 +++ linux/include/asm-i386/msr.h Wed Sep 19 22:57:32 2001 @@ -81,6 +81,7 @@ #define MSR_K7_EVNTSEL0 0xC0010000 #define MSR_K7_PERFCTR0 0xC0010004 +#define MSR_K7_HWCR 0xC0010015 /* Centaur-Hauls/IDT defined MSRs. */ #define MSR_IDT_FCR1 0x107