Date: Mon, 31 Oct 2016 18:37:05 +0000 (UTC) From: John Baldwin <jhb@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r308142 - head/sys/amd64/include Message-ID: <201610311837.u9VIb5n4023468@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: jhb Date: Mon Oct 31 18:37:05 2016 New Revision: 308142 URL: https://svnweb.freebsd.org/changeset/base/308142 Log: Move declarations of invpcid_works and pmap_pcid_enabled to pmap.h. Previously these were only declared under #ifdef SMP in <machine/smp.h>. However, these variables are defind in pmap.c unconditionally, and efirt.c references them unconditionally. This fixes non-SMP kernel builds. Discussed with: kib MFC after: 1 week Modified: head/sys/amd64/include/pmap.h head/sys/amd64/include/smp.h Modified: head/sys/amd64/include/pmap.h ============================================================================== --- head/sys/amd64/include/pmap.h Mon Oct 31 18:29:16 2016 (r308141) +++ head/sys/amd64/include/pmap.h Mon Oct 31 18:37:05 2016 (r308142) @@ -382,6 +382,8 @@ extern vm_paddr_t dump_avail[]; extern vm_offset_t virtual_avail; extern vm_offset_t virtual_end; extern vm_paddr_t dmaplimit; +extern int pmap_pcid_enabled; +extern int invpcid_works; #define pmap_page_get_memattr(m) ((vm_memattr_t)(m)->md.pat_mode) #define pmap_page_is_write_mapped(m) (((m)->aflags & PGA_WRITEABLE) != 0) Modified: head/sys/amd64/include/smp.h ============================================================================== --- head/sys/amd64/include/smp.h Mon Oct 31 18:29:16 2016 (r308141) +++ head/sys/amd64/include/smp.h Mon Oct 31 18:37:05 2016 (r308142) @@ -21,9 +21,6 @@ #include <x86/x86_smp.h> -extern int pmap_pcid_enabled; -extern int invpcid_works; - /* global symbols in mpboot.S */ extern char mptramp_start[]; extern char mptramp_end[];
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201610311837.u9VIb5n4023468>