2.2.17: CPU features bug for AMD?

From: Ulrich Windl (Ulrich.Windl@rz.uni-regensburg.de)
Date: Mon Oct 09 2000 - 06:09:13 EST


Browsing patch-2.2.17.gz I found this:
linux/arch/i386/kernel/setup.c:
Isn't here an "else" or "break" missing? Otherwise
``x86_cap_flags[16] = "pat"'' is always the case, and extended
AMD features are always present.
@@ -1029,17 +1130,22 @@
                    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[16] = "pat";
+ x86_cap_flags[22] = "mmxext";
+ x86_cap_flags[24] = "fxsr";
+ x86_cap_flags[30] = "3dnowext";
                        x86_cap_flags[31] = "3dnow";
                        break;

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Sun Oct 15 2000 - 21:00:11 EST