forked from Bananymous/banan-os
Kernel: init2 is now launched as a process instead of thread
Also only process can now add threads to scheduler. Nobody should have raw access to scheduler and everything should be through Process::current() or irqs (reschedules)
This commit is contained in:
@@ -165,9 +165,9 @@ extern "C" void kernel_main()
|
||||
|
||||
MUST(Scheduler::initialize());
|
||||
Scheduler& scheduler = Scheduler::get();
|
||||
MUST(scheduler.add_thread(MUST(Thread::create(init2, tty1, nullptr))));
|
||||
MUST(Process::create_kernel(init2, tty1));
|
||||
scheduler.start();
|
||||
|
||||
|
||||
ASSERT_NOT_REACHED();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user