summaryrefslogtreecommitdiff
path: root/sys/include
diff options
context:
space:
mode:
authorIan Moffett <ian@osmora.org>2024-06-23 22:35:44 -0400
committerIan Moffett <ian@osmora.org>2024-06-23 22:35:44 -0400
commit84f6abd193211b30c62a7c708edaccbe3ede8ee7 (patch)
tree2f9ac1ce6da977491d0b0854ed6331fb5c5cd05d /sys/include
parent00245135a7df4028df60f62f4041c1302e5b3381 (diff)
kernel/amd64: Add machdep thread init function
Signed-off-by: Ian Moffett <ian@osmora.org>
Diffstat (limited to 'sys/include')
-rw-r--r--sys/include/sys/proc.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/sys/include/sys/proc.h b/sys/include/sys/proc.h
index b74cb00..db41a4b 100644
--- a/sys/include/sys/proc.h
+++ b/sys/include/sys/proc.h
@@ -39,6 +39,8 @@
#endif /* _KERNEL */
#if defined(_KERNEL)
+#define PROC_STACK_PAGES 8
+#define PROC_STACK_SIZE (PROC_STACK_PAGES * DEFAULT_PAGESIZE)
struct proc {
pid_t pid;
@@ -50,6 +52,7 @@ struct proc {
};
struct proc *this_td(void);
+int md_td_init(struct proc *p, struct proc *parent, uintptr_t ip);
#endif /* _KERNEL */
#endif /* !_SYS_PROC_H_ */