proc: fix errors, enter userspace
Signed-off-by: Michael Shaw <m@michaelsshaw.com>
This commit is contained in:
parent
b279d0a06a
commit
c7fa9a75fa
15 changed files with 86 additions and 8 deletions
|
|
@ -38,6 +38,7 @@ void enter_userspace_init(struct thread *thread, uaddr_t entry)
|
|||
|
||||
void *kstack = kalloc(PAGE_SIZE, ALLOC_KERN);
|
||||
tls->kernel_rsp = (vaddr_t)kstack + PAGE_SIZE;
|
||||
tls->tss.rsp0 = tls->kernel_rsp;
|
||||
|
||||
pgd_load(thread->proc->pgd);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue