proc: add context switching

Signed-off-by: Michael Shaw <m@michaelsshaw.com>
This commit is contained in:
Michael Shaw 2026-07-15 17:19:46 -04:00
commit a73fc47664
4 changed files with 46 additions and 17 deletions

View file

@ -22,16 +22,17 @@ struct vm_area {
struct proc;
struct thread {
struct proc *proc;
tid_t tid;
vaddr_t stack_addr;
u64 state;
bool in_kernel;
vaddr_t user_stack;
vaddr_t kernel_stack;
u64 tls_base;
struct proc *proc;
struct thread *next;
};