scheduler: fix kernel stack unmapping

This commit is contained in:
Matheus
2024-05-01 22:41:59 -03:00
parent 2a72a6a271
commit dd46c4b766
+1
View File
@@ -91,6 +91,7 @@ thread_t *sched_newthread(void *ip, size_t kstacksize, int priority, proc_t *pro
thread->vmmctx = proc ? NULL : &vmm_kernelctx;
thread->proc = proc;
thread->priority = priority;
thread->kernelstacksize = kstacksize;
if (proc) {
// each thread holds one reference to proc
PROC_HOLD(proc);