From b22e2601f3ff25ae395529b229eadb5c7d9dd357 Mon Sep 17 00:00:00 2001 From: Stefan Lankes Date: Sun, 9 Oct 2016 08:57:31 +0200 Subject: [PATCH] enable x2APIC only at boot time (and not in every reset call) --- hermit/arch/x86/kernel/apic.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/hermit/arch/x86/kernel/apic.c b/hermit/arch/x86/kernel/apic.c index cb1ddc66b..f7c20ba3f 100644 --- a/hermit/arch/x86/kernel/apic.c +++ b/hermit/arch/x86/kernel/apic.c @@ -431,7 +431,7 @@ static int lapic_reset(void) if (!lapic) return -ENXIO; - x2apic_enable(); + //x2apic_enable(); max_lvt = apic_lvt_entries(); @@ -893,7 +893,7 @@ extern int set_idle_task(void); #if MAX_CORES > 1 int smp_start(void) { - //x2apic_enable(); + x2apic_enable(); // reset APIC and set id lapic_reset();