proc: add context switching
Signed-off-by: Michael Shaw <m@michaelsshaw.com>
This commit is contained in:
parent
c01b1d7eee
commit
a73fc47664
4 changed files with 46 additions and 17 deletions
|
|
@ -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;
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue