Patch for K6 sep flag

Brian Gerst (bgerst@quark.vpplus.com)
Fri, 01 Jan 1999 20:34:06 -0500


This is a multi-part message in MIME format.
--------------BC83B5A56ABC1093034BABE2
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit

This patch fixes /proc/cpuinfo for the K6 model 6. On this version of
the K6, bit 10 of the extended flags register denotes the SYSCALL/SYSRET
capability. On later models, bit 11 (the same as the PPro/PII) is used.

-- 

Brian Gerst --------------BC83B5A56ABC1093034BABE2 Content-Type: text/plain; charset=us-ascii; name="setup.diff" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="setup.diff"

--- arch/i386/kernel/setup.c.bak Fri Jan 1 19:25:41 1999 +++ arch/i386/kernel/setup.c Fri Jan 1 19:30:00 1999 @@ -689,6 +689,8 @@ } else if (c->x86_vendor == X86_VENDOR_AMD) { x86_cap_flags[16] = "fcmov"; x86_cap_flags[31] = "3dnow"; + if (c->x86 == 5 && c->x86_model == 6) + x86_cap_flags[10] = "sep"; } else if (c->x86_vendor == X86_VENDOR_INTEL) { x86_cap_flags[6] = "pae"; x86_cap_flags[9] = "apic";

--------------BC83B5A56ABC1093034BABE2--

- 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/