summaryrefslogtreecommitdiffstats
path: root/sys/i386
diff options
context:
space:
mode:
authorjhb <jhb@FreeBSD.org>2012-07-09 20:42:08 +0000
committerjhb <jhb@FreeBSD.org>2012-07-09 20:42:08 +0000
commitfb20c6fee6baf0d773d72b8e0a63489e2e7cb188 (patch)
treecd61c7e18b106d96f8d6dae36d79a742cee193c5 /sys/i386
parentf5f1e197556558f5b7ecb769aca02ec45c179e82 (diff)
downloadFreeBSD-src-fb20c6fee6baf0d773d72b8e0a63489e2e7cb188.zip
FreeBSD-src-fb20c6fee6baf0d773d72b8e0a63489e2e7cb188.tar.gz
Partially revert r217515 so that the mem_range_softc variable is always
present on x86 kernels. This fixes the build of kernels that include 'device acpi' but do not include 'device mem'. MFC after: 1 month
Diffstat (limited to 'sys/i386')
-rw-r--r--sys/i386/i386/machdep.c3
-rw-r--r--sys/i386/i386/mem.c2
2 files changed, 3 insertions, 2 deletions
diff --git a/sys/i386/i386/machdep.c b/sys/i386/i386/machdep.c
index de105f0..40c8c46 100644
--- a/sys/i386/i386/machdep.c
+++ b/sys/i386/i386/machdep.c
@@ -75,6 +75,7 @@ __FBSDID("$FreeBSD$");
#include <sys/linker.h>
#include <sys/lock.h>
#include <sys/malloc.h>
+#include <sys/memrange.h>
#include <sys/msgbuf.h>
#include <sys/mutex.h>
#include <sys/pcpu.h>
@@ -247,6 +248,8 @@ struct pcpu __pcpu[MAXCPU];
struct mtx icu_lock;
+struct mem_range_softc mem_range_softc;
+
static void
cpu_startup(dummy)
void *dummy;
diff --git a/sys/i386/i386/mem.c b/sys/i386/i386/mem.c
index dbbe242f..9c83f47 100644
--- a/sys/i386/i386/mem.c
+++ b/sys/i386/i386/mem.c
@@ -72,8 +72,6 @@ __FBSDID("$FreeBSD$");
*/
MALLOC_DEFINE(M_MEMDESC, "memdesc", "memory range descriptors");
-struct mem_range_softc mem_range_softc;
-
static struct sx memsxlock;
SX_SYSINIT(memsxlockinit, &memsxlock, "/dev/mem lock");
OpenPOWER on IntegriCloud