lkml.org 
[lkml]   [1998]   [Aug]   [2]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
Subject[PATCH] minor typo in setup.c (CPU vendor capabilities)
Hi,

Just noticed that I was getting the mmx capability flag when setup.c
supposedly renames it to cxmmx on Cyrixes. The following patch fixes it,
it is against 2.1.112 but 2.1.113 doesn't touch this file.

[The two attachements show the effect on /proc/cpuinfo]

Cheers,

Rafael

--- linux-2.1.112/arch/i386/kernel/setup.c Wed Jul 29 23:47:04 1998
+++ linux/arch/i386/kernel/setup.c Sun Aug 2 19:16:30 1998
@@ -568,7 +568,7 @@
/* Modify the capabilities according to chip type */
if (c->x86_mask) {
if (c->x86_vendor == X86_VENDOR_CYRIX) {
- x86_cap_flags[24] = "cxmmx";
+ x86_cap_flags[23] = "cxmmx";
} else if (c->x86_vendor == X86_VENDOR_AMD) {
x86_cap_flags[16] = "fcmov";
x86_cap_flags[31] = "amd3d";processor : 0
cpu family : 6
model : 6x86MX 2x Core/Bus Clock
vendor_id : CyrixInstead
stepping : 1.3
fdiv_bug : no
hlt_bug : no
sep_bug : no
f00f_bug : no
fpu : yes
fpu_exception : yes
cpuid level : 1
wp : yes
flags : fpu de msr cx8 cmov mmx
bogomips : 133.12

processor : 0
cpu family : 6
model : 6x86MX 2x Core/Bus Clock
vendor_id : CyrixInstead
stepping : 1.3
fdiv_bug : no
hlt_bug : no
sep_bug : no
f00f_bug : no
fpu : yes
fpu_exception : yes
cpuid level : 1
wp : yes
flags : fpu de msr cx8 cmov cxmmx
bogomips : 133.12

\
 
 \ /
  Last update: 2005-03-22 13:43    [from the cache]
©2003-2011 Jasper Spaans