[kernel] Get rid of obsolete thread loading state

The thread::state::loading flag was left over from a time when the
kernel did elf loading for all processes.
This commit is contained in:
Justin C. Miller
2022-01-30 20:50:48 -08:00
parent 42774d94c0
commit 9945ebab34
3 changed files with 5 additions and 10 deletions

View File

@@ -19,7 +19,6 @@ thread_create(j6_handle_t *self, process *proc, uintptr_t stack_top, uintptr_t e
thread *child = proc->create_thread(stack_top);
child->add_thunk_user(entrypoint);
*self = child->self_handle();
child->clear_state(thread::state::loading);
child->set_state(thread::state::ready);
log::debug(logs::task, "Thread %llx:%llx spawned new thread %llx:%llx",