Fix initial thread status
This commit is contained in:
parent
a96fded645
commit
b1e6bc1aab
@ -33,6 +33,8 @@ int kthreadSetup(vaddr_t mainStack, size_t mainStackSize)
|
||||
current->stackAddr = mainStack;
|
||||
current->stackSize = mainStackSize;
|
||||
|
||||
current->state = RUNNING;
|
||||
|
||||
list_singleton(currentThread, current);
|
||||
|
||||
return 0;
|
||||
|
Loading…
Reference in New Issue
Block a user