aboutsummaryrefslogtreecommitdiff
path: root/sys/include
diff options
context:
space:
mode:
authorIan Moffett <ian@osmora.org>2024-06-30 23:37:33 -0400
committerIan Moffett <ian@osmora.org>2024-06-30 23:39:37 -0400
commit974d7ce527c9220fcdad44b27b4a2b44054502c2 (patch)
treeea1b0334915c38bdeec7109fb2c73825925e0729 /sys/include
parentb947d0c149dd3a36d92343a41a80a6b3f29f5f00 (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.h5
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_ */