Re: pre-2.1.116-1 fails compile in bugs.h

Chris Wedgwood (chris@cybernet.co.nz)
Mon, 10 Aug 1998 15:24:36 +1200


--YZ5djTAD1cGYuMQK
Content-Type: text/plain; charset=us-ascii
Content-Description: Its the message 'mon!

On Sun, Aug 09, 1998 at 07:42:59PM -0400, Pete Clements wrote:

> gcc -D__KERNEL__ -I/usr/src/linux-2.1.116/include -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer -pipe -fno-strength-reduce -m486 -malign-loops=2 -malign-jumps=2 -malign-functions=2 -DCPU=586 -c -o init/main.o init/main.c
> /usr/src/linux-2.1.116/include/asm/bugs.h: In function `check_cx686_cpuid_slop':
> In file included from init/main.c:39:

Some Cryix stuff (register definitions) is missing. If you can't wait
for an `official' patch then just lart the code or apply this.

-cw

--YZ5djTAD1cGYuMQK
Content-Type: text/plain; charset=us-ascii
Content-Description: troll troll troll your boat....
Content-Disposition: attachment; filename=blah

--- include/asm-i386/bugs.h~ Mon Aug 10 09:51:10 1998
+++ include/asm-i386/bugs.h Mon Aug 10 10:06:32 1998
@@ -278,6 +278,9 @@

__initfunc(static void check_cx686_cpuid_slop(void))
{
+
+#ifdef CONFIG_CYRIX_REALLY_ISNT_BROKEN_SHIT
+
if (boot_cpu_data.x86_vendor == X86_VENDOR_CYRIX &&
(boot_cpu_data.x86_model & 0xf0) == 0x30) { /* 6x86(L) */
int dummy;
@@ -311,6 +314,8 @@
boot_cpu_data.loops_per_sec = loops_per_sec;
}
}
+#endif
+
}

__initfunc(static void check_bugs(void))

--YZ5djTAD1cGYuMQK--

-
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.altern.org/andrebalsa/doc/lkml-faq.html