svn commit: r308142 - head/sys/amd64/include
John Baldwin
jhb at FreeBSD.org
Mon Oct 31 18:37:06 UTC 2016
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[];
More information about the svn-src-all
mailing list