Date: Fri, 28 Sep 2018 20:26:19 +0300 From: Konstantin Belousov <kostikbel@gmail.com> To: =?utf-8?Q?T=C4=B3l?= Coosemans <tijl@FreeBSD.org> Cc: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: Re: svn commit: r338807 - in head/sys: amd64/amd64 amd64/include dev/drm2 dev/drm2/i915 i386/i386 i386/include x86/iommu Message-ID: <20180928172619.GG5335@kib.kiev.ua> In-Reply-To: <20180928190234.53240b03@kalimero.tijl.coosemans.org> References: <201809191935.w8JJZ2ob054223@repo.freebsd.org> <20180928190234.53240b03@kalimero.tijl.coosemans.org>
next in thread | previous in thread | raw e-mail | index | archive | help
On Fri, Sep 28, 2018 at 07:02:34PM +0200, Tijl Coosemans wrote: > The removal of #ifdef DEV_APIC breaks building kernels without device > apic: > > /usr/src/sys/i386/i386/pmap.c:1465:28: error: > use of undeclared identifier 'lapic_paddr' > if (pmap_kextract(sva) == lapic_paddr) > ^ > 1 error generated. Does the following work for you ? If not, please provide me your kernel config. diff --git a/sys/i386/i386/pmap.c b/sys/i386/i386/pmap.c index a969eef2881..0c303e25a59 100644 --- a/sys/i386/i386/pmap.c +++ b/sys/i386/i386/pmap.c @@ -1456,6 +1456,7 @@ pmap_force_invalidate_cache_range(vm_offset_t sva, vm_offset_t eva) 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_offset_t eva) */ if (pmap_kextract(sva) == lapic_paddr) return; +#endif if ((cpu_stdext_feature & CPUID_STDEXT_CLFLUSHOPT) != 0) { /*
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20180928172619.GG5335>