Athlon cpu capabilities flags

BOSZORMENYI Zoltan (zboszor@MOL.hu)
Wed, 8 Dec 1999 07:55:58 +0100


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

Hi, Linus!

You may have missed the announce of a patch on lkml.
(The announce was not mine.)

This patch is a modified version of that patch so it
requires a bit less memory and corrects two
/proc/cpuinfo flags (pat, apic) for the Athlon besides
the ones (pae, mca, extended mmx and 3dnow) the original
patch contained.

Regards,
Zoltan Boszormenyi
--------------8691B70C059511D68D58ACB5
Content-Type: text/plain; charset=us-ascii;
name="setup.c-2.3.30.diff"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline;
filename="setup.c-2.3.30.diff"

--- linux/arch/i386/kernel/setup.c.old Wed Dec 8 06:33:12 1999
+++ linux/arch/i386/kernel/setup.c Wed Dec 8 06:33:15 1999
@@ -1371,9 +1371,9 @@
char *p = buffer;
int sep_bug;
static char *x86_cap_flags[] = {
- "fpu", "vme", "de", "pse", "tsc", "msr", "6", "mce",
- "cx8", "9", "10", "sep", "mtrr", "pge", "14", "cmov",
- "16", "17", "psn", "19", "20", "21", "22", "mmx",
+ "fpu", "vme", "de", "pse", "tsc", "msr", "pae", "mce",
+ "cx8", "apic", "10", "sep", "mtrr", "pge", "mca", "cmov",
+ "pat", "17", "psn", "19", "20", "21", "22", "mmx",
"24", "kni", "26", "27", "28", "29", "30", "31"
};
struct cpuinfo_x86 *c = cpu_data;
@@ -1419,15 +1419,14 @@
case X86_VENDOR_AMD:
if (c->x86 == 5 && c->x86_model == 6)
x86_cap_flags[10] = "sep";
- x86_cap_flags[16] = "fcmov";
+ if (c->x86 < 6)
+ x86_cap_flags[16] = "fcmov";
+ x86_cap_flags[22] = "mmxext";
+ x86_cap_flags[30] = "3dnowext";
x86_cap_flags[31] = "3dnow";
break;

case X86_VENDOR_INTEL:
- x86_cap_flags[6] = "pae";
- x86_cap_flags[9] = "apic";
- x86_cap_flags[14] = "mca";
- x86_cap_flags[16] = "pat";
x86_cap_flags[17] = "pse36";
x86_cap_flags[18] = "psn";
x86_cap_flags[24] = "osfxsr";

--------------8691B70C059511D68D58ACB5--

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