Makefile: add module support
Signed-off-by: Michael Shaw <m@michaelsshaw.com>
This commit is contained in:
parent
7cc7da0f54
commit
9fed595abc
7 changed files with 50 additions and 17 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in a new issue