summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjhb <jhb@FreeBSD.org>2001-04-17 02:51:28 +0000
committerjhb <jhb@FreeBSD.org>2001-04-17 02:51:28 +0000
commit3a52576aa47994ff671ff9098e1afb72a4ed9e60 (patch)
tree808a80387719bc512ef7a46cec01fc064b0aa0b3
parentf8ca9d2d2087d8ebf83aae200f9269eafd5e5945 (diff)
downloadFreeBSD-src-3a52576aa47994ff671ff9098e1afb72a4ed9e60.zip
FreeBSD-src-3a52576aa47994ff671ff9098e1afb72a4ed9e60.tar.gz
- Add appropriate #ifndef/#define/#endif to protect against multiple
inclusions. - Blow away all evidence of a static curpcb as curpcb is a per-CPU variable and this definition is now bogus.
-rw-r--r--sys/alpha/include/pcb.h9
1 files changed, 4 insertions, 5 deletions
diff --git a/sys/alpha/include/pcb.h b/sys/alpha/include/pcb.h
index e86af08..18c4c13 100644
--- a/sys/alpha/include/pcb.h
+++ b/sys/alpha/include/pcb.h
@@ -28,6 +28,9 @@
* rights to redistribute these changes.
*/
+#ifndef _MACHINE_PCB_H_
+#define _MACHINE_PCB_H_
+
#include <machine/frame.h>
#include <machine/reg.h>
#include <machine/globaldata.h>
@@ -65,8 +68,4 @@ struct md_coredump {
struct fpreg md_fpstate;
};
-#ifdef _KERNEL
-#ifndef curpcb
-extern struct pcb *curpcb; /* our current running pcb */
-#endif
-#endif
+#endif /* _MACHINE_PCB_H */
OpenPOWER on IntegriCloud