More /proc/cpuinfo patches

Brian Gerst (bgerst@quark.vpplus.com)
Thu, 07 Jan 1999 11:58:11 -0500


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

Here are some patches pertaining mostly to the K6. I changed the
syscall extension flags to "sce1" and "sce2", to reflect the fact that
there are two distinct versions of syscall support on the K6. I also
patched the check that causes A step K6's (mask 0) to show an unknown
stepping. If cpuid_level is 1 or greater, the mask revision number is
valid even if it is 0.

-- 

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

--- setup.c.bak Thu Jan 7 11:43:57 1999 +++ setup.c Thu Jan 7 11:38:57 1999 @@ -619,7 +619,7 @@ else printk("%s", c->x86_model_id); - if (c->x86_mask) + if (c->cpuid_level >= 1 || c->x86_mask) printk(" stepping %02x", c->x86_mask); if(c->x86_vendor == X86_VENDOR_CENTAUR) @@ -669,7 +669,7 @@ c->x86_model, c->x86_model_id[0] ? c->x86_model_id : "unknown"); - if (c->x86_mask) + if (c->cpuid_level >= 1 || c->x86_mask) p += sprintf(p, "stepping\t: %d\n", c->x86_mask); else p += sprintf(p, "stepping\t: unknown\n"); @@ -687,10 +687,10 @@ if (c->x86_vendor == X86_VENDOR_CYRIX) { x86_cap_flags[24] = "cxmmx"; } else if (c->x86_vendor == X86_VENDOR_AMD) { + x86_cap_flags[10] = "sce1"; + x86_cap_flags[11] = "sce2"; 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";

--------------9120EDA89A1C824C6904D51B--

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