patch-2.3.12 linux/include/asm-i386/smp.h

Next file: linux/include/asm-m68k/resource.h
Previous file: linux/include/asm-i386/signal.h
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.3.11/linux/include/asm-i386/smp.h linux/include/asm-i386/smp.h
@@ -8,7 +8,7 @@
 #ifdef CONFIG_X86_LOCAL_APIC
 #ifndef ASSEMBLY
 #include <asm/fixmap.h>
-#include <asm/i82489.h>
+#include <asm/apic.h>
 #include <asm/bitops.h>
 #endif
 #endif
@@ -184,6 +184,16 @@
 extern inline int cpu_logical_map(int cpu)
 {
 	return __cpu_logical_map[cpu];
+}
+
+extern __inline void apic_write(unsigned long reg, unsigned long v)
+{
+	*((volatile unsigned long *)(APIC_BASE+reg))=v;
+}
+
+extern __inline unsigned long apic_read(unsigned long reg)
+{
+	return *((volatile unsigned long *)(APIC_BASE+reg));
 }
 
 

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)