diff options
author | jhb <jhb@FreeBSD.org> | 2001-05-10 17:45:49 +0000 |
---|---|---|
committer | jhb <jhb@FreeBSD.org> | 2001-05-10 17:45:49 +0000 |
commit | 41fc4419f3762bcb77454d08efb22c049b2259bb (patch) | |
tree | 303330e5c0ad9c65ed39b222d1233727e2818286 /sys/amd64 | |
parent | 666424d146293fddcb56001344a6f8e225cc13de (diff) | |
download | FreeBSD-src-41fc4419f3762bcb77454d08efb22c049b2259bb.zip FreeBSD-src-41fc4419f3762bcb77454d08efb22c049b2259bb.tar.gz |
- Split out the support for per-CPU data from the SMP code. UP kernels
have per-CPU data and gdb on the i386 at least needs access to it.
- Clean up includes in kern_idle.c and subr_smp.c.
Reviewed by: jake
Diffstat (limited to 'sys/amd64')
-rw-r--r-- | sys/amd64/amd64/db_interface.c | 1 | ||||
-rw-r--r-- | sys/amd64/amd64/machdep.c | 5 |
2 files changed, 3 insertions, 3 deletions
diff --git a/sys/amd64/amd64/db_interface.c b/sys/amd64/amd64/db_interface.c index cdaefe4..51fc835 100644 --- a/sys/amd64/amd64/db_interface.c +++ b/sys/amd64/amd64/db_interface.c @@ -36,6 +36,7 @@ #include <sys/ktr.h> #include <sys/linker_set.h> #include <sys/lock.h> +#include <sys/pcpu.h> #include <sys/proc.h> #include <sys/smp.h> diff --git a/sys/amd64/amd64/machdep.c b/sys/amd64/amd64/machdep.c index 8d77658..a9bf55b 100644 --- a/sys/amd64/amd64/machdep.c +++ b/sys/amd64/amd64/machdep.c @@ -62,6 +62,7 @@ #include <sys/lock.h> #include <sys/malloc.h> #include <sys/mutex.h> +#include <sys/pcpu.h> #include <sys/proc.h> #include <sys/bio.h> #include <sys/buf.h> @@ -102,7 +103,6 @@ #include <machine/md_var.h> #include <machine/pc/bios.h> #include <machine/pcb_ext.h> /* pcb.h included via sys/user.h */ -#include <machine/globaldata.h> #include <machine/globals.h> #include <machine/intrcnt.h> #ifdef PERFMON @@ -437,9 +437,8 @@ again: bufinit(); vm_pager_bufferinit(); -#ifdef SMP globaldata_register(GLOBALDATA); -#else +#ifndef SMP /* For SMP, we delay the cpu_setregs() until after SMP startup. */ cpu_setregs(); #endif |