OSDN Git Service

[PATCH] make 2.4.32 work on i486 again
authorJacek Lipkowski <sq5bpf@acid.ch.pw.edu.pl>
Tue, 31 Jan 2006 22:29:05 +0000 (23:29 +0100)
committerWilly Tarreau <willy@alpha.(none)>
Wed, 1 Feb 2006 05:15:03 +0000 (06:15 +0100)
Booting the 2.4.32 kernel compiled for a i486 on an i486 box fails,
because "Kernel compiled for Pentium+, requires TSC feature!" (printed
from check_config() include/asm-i386/bugs.h). To reproduce, select 486 in
the kernel configuration and grep CONFIG_X86_TSC .config

arch/i386/config.in

index 6838057..fddbb02 100644 (file)
@@ -65,6 +65,7 @@ else
    define_bool CONFIG_X86_POPAD_OK y
    define_bool CONFIG_RWSEM_GENERIC_SPINLOCK n
    define_bool CONFIG_RWSEM_XCHGADD_ALGORITHM y
+   define_bool CONFIG_X86_TSC n
 fi
 if [ "$CONFIG_M486" = "y" ]; then
    define_int  CONFIG_X86_L1_CACHE_SHIFT 4
@@ -72,6 +73,7 @@ if [ "$CONFIG_M486" = "y" ]; then
    define_bool CONFIG_X86_ALIGNMENT_16 y
    define_bool CONFIG_X86_PPRO_FENCE y
    define_bool CONFIG_X86_F00F_WORKS_OK n
+   define_bool CONFIG_X86_TSC n
 fi
 if [ "$CONFIG_M586" = "y" ]; then
    define_int  CONFIG_X86_L1_CACHE_SHIFT 5