summaryrefslogtreecommitdiff
path: root/src/arch/x86/include
diff options
context:
space:
mode:
Diffstat (limited to 'src/arch/x86/include')
-rw-r--r--src/arch/x86/include/arch/ioapic.h4
-rw-r--r--src/arch/x86/include/arch/smp/mpspec.h5
2 files changed, 5 insertions, 4 deletions
diff --git a/src/arch/x86/include/arch/ioapic.h b/src/arch/x86/include/arch/ioapic.h
index 623f617253..5d7e19649e 100644
--- a/src/arch/x86/include/arch/ioapic.h
+++ b/src/arch/x86/include/arch/ioapic.h
@@ -20,7 +20,7 @@
#ifndef __I386_ARCH_IOAPIC_H
#define __I386_ARCH_IOAPIC_H
-#define IO_APIC_ADDR 0xfec00000UL
+#define IO_APIC_ADDR 0xfec00000
#define IO_APIC_INTERRUPTS 24
#define ALL (0xff << 24)
@@ -38,7 +38,9 @@
#define SMI (2 << 8)
#define INT (1 << 8)
+#ifndef __ACPI__
void setup_ioapic(u32 ioapic_base, u8 ioapic_id);
void clear_ioapic(u32 ioapic_base);
+#endif
#endif
diff --git a/src/arch/x86/include/arch/smp/mpspec.h b/src/arch/x86/include/arch/smp/mpspec.h
index 2eb18138a6..e5e6195cd5 100644
--- a/src/arch/x86/include/arch/smp/mpspec.h
+++ b/src/arch/x86/include/arch/smp/mpspec.h
@@ -2,6 +2,8 @@
#define __ASM_MPSPEC_H
#include <device/device.h>
+#include <cpu/x86/lapic_def.h>
+
/*
* Structure definitions for SMP machines following the
* Intel Multiprocessing Specification 1.1 and 1.4.
@@ -229,9 +231,6 @@ struct mp_exten_compatibility_address_space {
*/
} __attribute__((packed));
-/* Default local apic addr */
-#define LAPIC_ADDR 0xFEE00000
-
void mptable_init(struct mp_config_table *mc, u32 lapic_addr);
void *smp_next_mpc_entry(struct mp_config_table *mc);