mirror of
https://github.com/Mathewnd/Astral.git
synced 2026-11-01 15:08:21 +00:00
scheduler: fix kernel stack unmapping
This commit is contained in:
@@ -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->vmmctx = proc ? NULL : &vmm_kernelctx;
|
||||||
thread->proc = proc;
|
thread->proc = proc;
|
||||||
thread->priority = priority;
|
thread->priority = priority;
|
||||||
|
thread->kernelstacksize = kstacksize;
|
||||||
if (proc) {
|
if (proc) {
|
||||||
// each thread holds one reference to proc
|
// each thread holds one reference to proc
|
||||||
PROC_HOLD(proc);
|
PROC_HOLD(proc);
|
||||||
|
|||||||
Reference in New Issue
Block a user