x86_64: Eanble X2APIC if it is available.
authorSepherosa Ziehau <sephe@dragonflybsd.org>
Tue, 19 Jun 2018 13:16:20 +0000 (21:16 +0800)
committerSepherosa Ziehau <sephe@dragonflybsd.org>
Tue, 19 Jun 2018 13:16:20 +0000 (21:16 +0800)
sys/platform/pc64/apic/lapic.c

index 1433443..03fbed1 100644 (file)
@@ -123,7 +123,7 @@ int cpu_id_to_apic_id[NAPICID];
 int    apic_id_to_cpu_id[NAPICID];
 int    lapic_enable = 1;
 int    lapic_usable = 0;
-int    x2apic_enable = 0;
+int    x2apic_enable = 1;
 
 SYSCTL_INT(_hw, OID_AUTO, x2apic_enable, CTLFLAG_RD, &x2apic_enable, 0, "");