diff options
Diffstat (limited to 'include/asm-i386/smp.h')
-rw-r--r-- | include/asm-i386/smp.h | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/include/asm-i386/smp.h b/include/asm-i386/smp.h index ec24476ae..91199de7f 100644 --- a/include/asm-i386/smp.h +++ b/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 @@ -16,7 +16,7 @@ #ifdef __SMP__ #ifndef ASSEMBLY -#include <linux/tasks.h> +#include <linux/threads.h> #include <linux/ptrace.h> /* @@ -186,6 +186,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)); +} + /* * General functions that each host system must provide. |