2.2.17: CPU features bug for AMD?

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

  • Next message: Byron Stanoszek: "Re: [PATCH] VM fix for 2.4.0-test9 & OOM handler"

    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 : Mon Oct 09 2000 - 07:12:09 EDT