proc: fix errors, enter userspace

Signed-off-by: Michael Shaw <m@michaelsshaw.com>
This commit is contained in:
Michael Shaw 2026-07-21 04:33:35 -04:00
commit c7fa9a75fa
15 changed files with 86 additions and 8 deletions

View file

@ -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);