Skip to contentSkip to conversation

link failure in intel.c

2.5.58-bk Joshua Kwan 1 participant 1 message Jan 15, 2003

lore
Share & tools
lore
#0 lore raw

Bad things during the final link process:

arch/i386/kernel/built-in.o(.init.text+0x34e4): In function `P2_enable_L2':
: undefined reference to read_cr0' arch/i386/kernel/built-in.o(.init.text+0x34f4): In function P2_enable_L2':
: undefined reference to write_cr0' arch/i386/kernel/built-in.o(.init.text+0x3510): In function P2_enable_L2':
: undefined reference to write_cr0' arch/i386/kernel/built-in.o(.init.text+0x3515): In function P2_enable_L2':
: undefined reference to `wbinvd'
make[1]: *** [vmlinux] Error 1
make: *** [vmlinux] Error 2

I'm quite sure it is because of this changeset:

[email protected]|arch/i386/kernel/cpu/intel.c|20030115022821|46315

======== intel.c 1.1..1.18 ========
D 1.18 03/01/15 01:28:21-01:00 [email protected] 38 37 29/0/430 P arch/i386/kernel/cpu/intel.c
C Some 'overdrive' boards, such as those from Powerleap don't have C the L2 cache enabled, and the BIOS doesn't know about it, so we C introduce a boot option to 'force' it on.

Dave forgot to include system.h in his revised intel.c, so here is a quick patch for it.

i386/kernel/cpu/intel.new.c 2003-01-15 00:41:53.000000000 -0800 renamed from i386/kernel/cpu/intel.c 2003-01-15 00:48:43.000000000 -0800 +1 -0
@@ -8,6 +8,7 @@
 #include <asm/processor.h>
 #include <asm/msr.h>
 #include <asm/uaccess.h>
+#include <asm/system.h>
 
 #include "cpu.h"
 

With this patch the kernel compiles cleanly.

Regards
Josh