Fix initial thread status

This commit is contained in:
Mathieu Maret 2020-05-03 23:11:45 +02:00
parent a96fded645
commit b1e6bc1aab

View File

@ -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;