From 0e9830884c118735ad0122c81156473d91f57cf1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ky=C3=B6sti=20M=C3=A4lkki?= Date: Thu, 10 Feb 2022 07:13:29 +0200 Subject: cpu/x86/lapic: Always have LAPIC enabled MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit LAPIC has been available since P54C released 1993. Change-Id: Id564a3007ea7a3d9fb81005a05399a18c4cf7289 Signed-off-by: Kyösti Mälkki Reviewed-on: https://review.coreboot.org/c/coreboot/+/61794 Reviewed-by: coreboot org Reviewed-by: Elyes Haouas Tested-by: build bot (Jenkins) --- src/cpu/x86/lapic/lapic.c | 8 -------- 1 file changed, 8 deletions(-) (limited to 'src/cpu/x86/lapic') 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; -- cgit v1.2.3