Build fix for i386/XBOX and pc98/GENERIC.

Reviewed by:	kib
This commit is contained in:
Hans Petter Selasky 2015-10-28 12:10:01 +00:00
parent 3ea1870967
commit 8e9ef12d1e

View File

@ -1259,8 +1259,10 @@ pmap_invalidate_cache_range(vm_offset_t sva, vm_offset_t eva, boolean_t force)
mfence();
} else if ((cpu_feature & CPUID_CLFSH) != 0 &&
eva - sva < PMAP_CLFLUSH_THRESHOLD) {
#ifdef DEV_APIC
if (pmap_kextract(sva) == lapic_paddr)
return;
#endif
/*
* Writes are ordered by CLFLUSH on Intel CPUs.
*/