From 84f6abd193211b30c62a7c708edaccbe3ede8ee7 Mon Sep 17 00:00:00 2001 From: Ian Moffett Date: Sun, 23 Jun 2024 22:35:44 -0400 Subject: kernel/amd64: Add machdep thread init function Signed-off-by: Ian Moffett --- sys/include/sys/proc.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'sys/include') 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_ */ -- cgit v1.2.3