2.2.0-pre1 doesn't compile properly for a 386

Brian Blackmore (bnb@looking-glass.org)
Fri, 01 Jan 1999 16:31:55 +0000


If compiled and loaded on a 386 the following message occurs with
2.2.0-pre1

This kernel doesn't support CPU's with broken WP. Recompile it for a
386!

It seems that CONFIG_WP_WORKS_OK is set for a 386 when it shouldn't
be

The following patch seems to do whatever the original author intended
and seems fix it, but it may break menuconfig or xconfig

--- arch/i386/config.in.bak Fri Jan 1 16:07:39 1999
+++ arch/i386/config.in Fri Jan 1 16:23:13 1999
@@ -21,9 +21,10 @@
# Define implied options from the CPU selection here
#
if [ "$CONFIG_M386" != "n" ]; then
- define_bool CONFIG_WP_WORKS_OK y
define_bool CONFIG_INVLPG y
define_bool CONFIG_BSWAP y
+else
+ define_bool CONFIG_WP_WORKS_OK y
fi
if [ "$CONFIG_M686" = "y" -o "$CONFIG_M586TSC" = "y" ]; then
define_bool CONFIG_TSC y

-- 
Brian, http://www.looking-glass.org/

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