Skip to contentSkip to conversation

2.5.40 - fix compilation w/out APIC (uniprocessor)

PATCH New Carlos E Gorges 1 participant 1 message Oct 3, 2002

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 2.5.40 - fix compilation w/out APIC (uniprocessor)

ps: ** UNTESTED **

arch/i386/kernel/mpparse.c +3 -0
diff -uar linux-2.5.40/arch/i386/kernel/mpparse.c linux-2.5/arch/i386/kernel/mpparse.c
@@ -26,6 +26,7 @@
 
 #include <asm/smp.h>
 #include <asm/acpi.h>
+#include <asm/apic.h>
 #include <asm/mtrr.h>
 #include <asm/mpspec.h>
 #include <asm/pgalloc.h>
@@ -787,6 +788,7 @@
 void __init mp_register_lapic_address (
 	u64			address)
 {
+#ifdef CONFIG_X86_LOCAL_APIC
 	mp_lapic_addr = (unsigned long) address;
 
 	set_fixmap_nocache(FIX_APIC_BASE, mp_lapic_addr);
@@ -795,6 +797,7 @@
 		boot_cpu_physical_apicid = GET_APIC_ID(apic_read(APIC_ID));
 
 	Dprintk("Boot CPU = %d\n", boot_cpu_physical_apicid);
+#endif
 }
 
 
include/asm-i386/apic.h +2 -2
@@ -7,8 +7,6 @@
 #include <asm/apicdef.h>
 #include <asm/system.h>
 
-#ifdef CONFIG_X86_LOCAL_APIC
-
 #define APIC_DEBUG 0
 
 #if APIC_DEBUG
@@ -16,6 +14,8 @@
 #else
 #define Dprintk(x...)
 #endif
+
+#ifdef CONFIG_X86_LOCAL_APIC
 
 /*
  * Basic functions accessing APICs.
Signature · 6 lines
	 _________________________
	 Carlos E Gorges          
	 ([email protected])
	 Tech informática LTDA
	 Brazil                   
	 _________________________