TSCs are a no-no on i386

From: Jan-Benedict Glaw (jbglaw@lug-owl.de)
Date: Wed Jul 30 2003 - 08:56:23 EST


Hi!

This small patch fixes a long-standing problem for bare i386 CPUs. These
don't have TSCs and so, a recent 2.4.x kernel will simply halt the
machine leaving a text like "This CPU has no TSC feature (ie was
compiled for Pentium+) but I do depend on it".

Please apply. Worst to say, even Debian seems to start using i486+
features (ie. libstdc++5 is SIGILLed on Am386 because there's no
"lock" insn available)...

MfG, JBG

--- linux-2.4.22-pre9/arch/i386/config.in.orig 2003-07-30 15:00:27.000000000 +0200
+++ linux-2.4.22-pre9/arch/i386/config.in 2003-07-30 15:01:56.000000000 +0200
@@ -56,6 +56,7 @@
    define_bool CONFIG_RWSEM_XCHGADD_ALGORITHM n
    define_bool CONFIG_X86_PPRO_FENCE y
    define_bool CONFIG_X86_F00F_WORKS_OK n
+ define_bool CONFIG_X86_HAS_TSC n
 else
    define_bool CONFIG_X86_WP_WORKS_OK y
    define_bool CONFIG_X86_INVLPG y

-- 
   Jan-Benedict Glaw       jbglaw@lug-owl.de    . +49-172-7608481
   "Eine Freie Meinung in  einem Freien Kopf    | Gegen Zensur | Gegen Krieg
    fuer einen Freien Staat voll Freier Bürger" | im Internet! |   im Irak!
      ret = do_actions((curr | FREE_SPEECH) & ~(IRAQ_WAR_2 | DRM | TCPA));
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Thu Jul 31 2003 - 22:00:45 EST