diff options
author | rwatson <rwatson@FreeBSD.org> | 2004-08-05 00:32:08 +0000 |
---|---|---|
committer | rwatson <rwatson@FreeBSD.org> | 2004-08-05 00:32:08 +0000 |
commit | 0a811906a48aa74a168f1b4eb1ebb40abddcb7bc (patch) | |
tree | d7b8411c41fddcc1111ea717cda70a11f9321e0d /sys | |
parent | 9c9fafff0c59e38408811a3afe58c0cf5c49729e (diff) | |
download | FreeBSD-src-0a811906a48aa74a168f1b4eb1ebb40abddcb7bc.zip FreeBSD-src-0a811906a48aa74a168f1b4eb1ebb40abddcb7bc.tar.gz |
Move definition of mem_range_softc from mp_machdep.c to machdep.c so
that it is defined for non-SMP builds, not just SMP ones.
Diffstat (limited to 'sys')
-rw-r--r-- | sys/i386/i386/machdep.c | 3 | ||||
-rw-r--r-- | sys/i386/i386/mp_machdep.c | 2 |
2 files changed, 3 insertions, 2 deletions
diff --git a/sys/i386/i386/machdep.c b/sys/i386/i386/machdep.c index 7031fb3..0bcb6cf 100644 --- a/sys/i386/i386/machdep.c +++ b/sys/i386/i386/machdep.c @@ -65,6 +65,7 @@ __FBSDID("$FreeBSD$"); #include <sys/linker.h> #include <sys/lock.h> #include <sys/malloc.h> +#include <sys/memrange.h> #include <sys/mutex.h> #include <sys/pcpu.h> #include <sys/proc.h> @@ -196,6 +197,8 @@ static struct pcpu __pcpu; struct mtx icu_lock; +struct mem_range_softc mem_range_softc; + static void cpu_startup(dummy) void *dummy; diff --git a/sys/i386/i386/mp_machdep.c b/sys/i386/i386/mp_machdep.c index 48ba4ef..9505123 100644 --- a/sys/i386/i386/mp_machdep.c +++ b/sys/i386/i386/mp_machdep.c @@ -212,8 +212,6 @@ static int hlt_cpus_mask; static int hlt_logical_cpus; static struct sysctl_ctx_list logical_cpu_clist; -struct mem_range_softc mem_range_softc; - static void mem_range_AP_init(void) { |