diff options
author | peter <peter@FreeBSD.org> | 1997-05-07 19:49:32 +0000 |
---|---|---|
committer | peter <peter@FreeBSD.org> | 1997-05-07 19:49:32 +0000 |
commit | 010138a3ecaec3edaf0e9729f5bf4d3d5a69155e (patch) | |
tree | 9953aa12fa039599a8f427201c97ab2d3401b2d0 /sys/amd64/include/pcb.h | |
parent | 930dd0150d65d7d7cb66bde0049534e3b2f16def (diff) | |
download | FreeBSD-src-010138a3ecaec3edaf0e9729f5bf4d3d5a69155e.zip FreeBSD-src-010138a3ecaec3edaf0e9729f5bf4d3d5a69155e.tar.gz |
remove #include opt_smp.h
declare SMPcurpcb[] next to #define and uniprocessor counterpart
Diffstat (limited to 'sys/amd64/include/pcb.h')
-rw-r--r-- | sys/amd64/include/pcb.h | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/sys/amd64/include/pcb.h b/sys/amd64/include/pcb.h index 73ee223..1cbca02 100644 --- a/sys/amd64/include/pcb.h +++ b/sys/amd64/include/pcb.h @@ -34,7 +34,7 @@ * SUCH DAMAGE. * * from: @(#)pcb.h 5.10 (Berkeley) 5/12/91 - * $Id: pcb.h,v 1.19 1997/04/07 06:45:18 peter Exp $ + * $Id: pcb.h,v 1.20 1997/04/26 11:45:39 peter Exp $ */ #ifndef _I386_PCB_H_ @@ -45,6 +45,9 @@ */ #include <machine/tss.h> #include <machine/npx.h> +#if defined(KERNEL) && defined(SMP) +#include <machine/smp.h> /* cpunumber() */ +#endif struct pcb { int pcb_cr3; @@ -77,9 +80,8 @@ struct md_coredump { #ifdef KERNEL -#include "opt_smp.h" -#include <machine/smp.h> #ifdef SMP +extern struct pcb *SMPcurpcb[]; /* our current running pcb */ #define curpcb (SMPcurpcb[cpunumber()]) #else /* !SMP */ extern struct pcb *curpcb; /* our current running pcb */ |