Makefile: add module support

Signed-off-by: Michael Shaw <m@michaelsshaw.com>
This commit is contained in:
Michael Shaw 2026-07-20 16:43:00 -04:00
commit 9fed595abc
7 changed files with 50 additions and 17 deletions

View file

@ -36,6 +36,9 @@ void enter_userspace_init(struct thread *thread, uaddr_t entry)
tls->cur_thread = thread;
void *kstack = kalloc(PAGE_SIZE, ALLOC_KERN);
tls->kernel_rsp = (vaddr_t)kstack + PAGE_SIZE;
pgd_load(thread->proc->pgd);
thread->state = PROC_STATE_RUNNING;