svn commit: r339016 - head/sys/i386/i386

Konstantin Belousov kib at FreeBSD.org
Sat Sep 29 16:17:36 UTC 2018


Author: kib
Date: Sat Sep 29 16:17:35 2018
New Revision: 339016
URL: https://svnweb.freebsd.org/changeset/base/339016

Log:
  Fix UP build.
  
  Reported by:	tijl
  Sponsored by:	The FreeBSD Foundation
  Approved by:	re (rgrimes)

Modified:
  head/sys/i386/i386/pmap.c

Modified: head/sys/i386/i386/pmap.c
==============================================================================
--- head/sys/i386/i386/pmap.c	Sat Sep 29 15:18:18 2018	(r339015)
+++ head/sys/i386/i386/pmap.c	Sat Sep 29 16:17:35 2018	(r339016)
@@ -1456,6 +1456,7 @@ pmap_force_invalidate_cache_range(vm_offset_t sva, vm_
 		return;
 	}
 
+#ifdef DEV_APIC
 	/*
 	 * XXX: Some CPUs fault, hang, or trash the local APIC
 	 * registers if we use CLFLUSH on the local APIC
@@ -1464,6 +1465,7 @@ pmap_force_invalidate_cache_range(vm_offset_t sva, vm_
 	 */
 	if (pmap_kextract(sva) == lapic_paddr)
 		return;
+#endif
 
 	if ((cpu_stdext_feature & CPUID_STDEXT_CLFLUSHOPT) != 0) {
 		/*


More information about the svn-src-head mailing list