diff options
Diffstat (limited to 'sys/alpha/include/pcb.h')
-rw-r--r-- | sys/alpha/include/pcb.h | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/sys/alpha/include/pcb.h b/sys/alpha/include/pcb.h index 3caa144..3bf2586 100644 --- a/sys/alpha/include/pcb.h +++ b/sys/alpha/include/pcb.h @@ -30,7 +30,7 @@ #include <machine/frame.h> #include <machine/reg.h> - +#include <machine/globaldata.h> #include <machine/alpha_cpu.h> /* @@ -53,6 +53,7 @@ struct pcb { u_int64_t pcb_fp_control; /* IEEE control word [SW] */ unsigned long pcb_onfault; /* for copy faults [SW] */ unsigned long pcb_accessaddr; /* for [fs]uswintr [SW] */ + u_int32_t pcb_schednest; /* state of sched_lock [SW] */ }; /* @@ -64,3 +65,9 @@ struct md_coredump { struct trapframe md_tf; struct fpreg md_fpstate; }; + +#ifdef _KERNEL +#ifndef curpcb +extern struct pcb *curpcb; /* our current running pcb */ +#endif +#endif |