From 974d7ce527c9220fcdad44b27b4a2b44054502c2 Mon Sep 17 00:00:00 2001 From: Ian Moffett Date: Sun, 30 Jun 2024 23:37:33 -0400 Subject: kernel: sched: Add exit1() Signed-off-by: Ian Moffett --- sys/include/sys/proc.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'sys/include') 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 #include #include +#include #if defined(_KERNEL) #include #include @@ -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_ */ -- cgit v1.2.3