diff options
author | Ian Moffett <ian@osmora.org> | 2024-06-23 22:35:44 -0400 |
---|---|---|
committer | Ian Moffett <ian@osmora.org> | 2024-06-23 22:35:44 -0400 |
commit | 84f6abd193211b30c62a7c708edaccbe3ede8ee7 (patch) | |
tree | 2f9ac1ce6da977491d0b0854ed6331fb5c5cd05d /sys/include | |
parent | 00245135a7df4028df60f62f4041c1302e5b3381 (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.h | 3 |
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_ */ |