diff options
Diffstat (limited to 'sys/include')
-rw-r--r-- | sys/include/sys/proc.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/sys/include/sys/proc.h b/sys/include/sys/proc.h index 684742a..5303072 100644 --- a/sys/include/sys/proc.h +++ b/sys/include/sys/proc.h @@ -33,6 +33,7 @@ #include <sys/types.h> #include <sys/spinlock.h> #include <sys/queue.h> +#include <sys/param.h> #if defined(_KERNEL) #include <machine/frame.h> #include <machine/pcb.h> @@ -47,13 +48,17 @@ struct proc { struct trapframe tf; struct pcb pcb; size_t priority; + uint32_t flags; uintptr_t stack_base; TAILQ_ENTRY(proc) link; }; +#define PROC_EXITING BIT(0) /* Exiting */ + struct proc *this_td(void); int md_fork(struct proc *p, struct proc *parent, uintptr_t ip); int fork1(struct proc *cur, int flags, void(*ip)(void), struct proc **newprocp); +int exit1(struct proc *td); #endif /* _KERNEL */ #endif /* !_SYS_PROC_H_ */ |