Re: 2.4.15-pre4 compile problem

Robert Love
2001-11-12T20:45:49Z

On Mon, 2001-11-12 at 15:34, Slo Mo Snail wrote:
> I have exactly the same problem...
> Strange, that nobody else has reported it, yet ;)
> I use gcc-2.95.3 and binutils 2.11.92.0.7 on a LFS
> I'll send you my .config but I don't think it's a config-specific problem

The patch below will solve the problem ...

diff -u linux-2.4.15-pre4/include/asm-i386/processor.h linux/include/asm-i386/processor.h
--- linux-2.4.15-pre4/include/asm-i386/processor.h Mon Nov 12 15:17:47 2001+++ linux/include/asm-i386/processor.h Mon Nov 12 15:40:32 2001
@@ -76,7 +76,7 @@
extern struct cpuinfo_x86 cpu_data[];
#define current_cpu_data cpu_data[smp_processor_id()]
#else
-#define cpu_data &boot_cpu_data
+#define cpu_data (&boot_cpu_data)
#define current_cpu_data boot_cpu_data
#endif

Robert Love