svn commit: r327764 - stable/11/sys/x86/x86
Konstantin Belousov
kib at FreeBSD.org
Wed Jan 10 08:10:19 UTC 2018
Author: kib
Date: Wed Jan 10 08:10:18 2018
New Revision: 327764
URL: https://svnweb.freebsd.org/changeset/base/327764
Log:
MFC r327517:
Use the new SDM-approved way to serialize x2APIC MSR writes.
Modified:
stable/11/sys/x86/x86/local_apic.c
Directory Properties:
stable/11/ (props changed)
Modified: stable/11/sys/x86/x86/local_apic.c
==============================================================================
--- stable/11/sys/x86/x86/local_apic.c Wed Jan 10 06:30:59 2018 (r327763)
+++ stable/11/sys/x86/x86/local_apic.c Wed Jan 10 08:10:18 2018 (r327764)
@@ -211,6 +211,7 @@ lapic_write32(enum LAPIC_REGISTERS reg, uint32_t val)
if (x2apic_mode) {
mfence();
+ lfence();
wrmsr(MSR_APIC_000 + reg, val);
} else {
*(volatile uint32_t *)(lapic_map + reg * LAPIC_MEM_MUL) = val;
More information about the svn-src-all
mailing list