diff options
-rw-r--r-- | src/cpu/x86/lapic/lapic.c | 8 | ||||
-rw-r--r-- | src/include/cpu/x86/lapic.h | 1 |
2 files changed, 0 insertions, 9 deletions
diff --git a/src/cpu/x86/lapic/lapic.c b/src/cpu/x86/lapic/lapic.c index 8e0449a5fe..6afd6c56ea 100644 --- a/src/cpu/x86/lapic/lapic.c +++ b/src/cpu/x86/lapic/lapic.c @@ -64,14 +64,6 @@ void enable_lapic(void) enable_lapic_mode(try_set_x2apic); } -void disable_lapic(void) -{ - msr_t msr; - msr = rdmsr(LAPIC_BASE_MSR); - msr.lo &= ~(LAPIC_BASE_MSR_ENABLE | LAPIC_BASE_MSR_X2APIC_MODE); - wrmsr(LAPIC_BASE_MSR, msr); -} - uintptr_t cpu_get_lapic_addr(void) { return LAPIC_DEFAULT_BASE; diff --git a/src/include/cpu/x86/lapic.h b/src/include/cpu/x86/lapic.h index 87cf3c77df..0e1384fe7e 100644 --- a/src/include/cpu/x86/lapic.h +++ b/src/include/cpu/x86/lapic.h @@ -181,7 +181,6 @@ void stop_this_cpu(void); void enable_lapic(void); void enable_lapic_mode(bool try_set_x2apic); -void disable_lapic(void); void setup_lapic_interrupts(void); static inline unsigned int early_lapicid(void) |