diff options
author | Ian Moffett <ian@osmora.org> | 2024-06-30 23:37:33 -0400 |
---|---|---|
committer | Ian Moffett <ian@osmora.org> | 2024-06-30 23:39:37 -0400 |
commit | 974d7ce527c9220fcdad44b27b4a2b44054502c2 (patch) | |
tree | ea1b0334915c38bdeec7109fb2c73825925e0729 /sys/include | |
parent | b947d0c149dd3a36d92343a41a80a6b3f29f5f00 (diff) |
kernel: sched: Add exit1()
Signed-off-by: Ian Moffett <ian@osmora.org>
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_ */ |