Kernel: We now launch Shell again on boot

Adding this just before push :D
This commit is contained in:
Bananymous 2023-04-19 00:41:24 +03:00
parent 59a682c720
commit d74ce4950c
1 changed files with 3 additions and 11 deletions

View File

@ -167,7 +167,7 @@ extern "C" void kernel_main()
Scheduler& scheduler = Scheduler::get(); Scheduler& scheduler = Scheduler::get();
MUST(Process::create_kernel(init2, tty1)); MUST(Process::create_kernel(init2, tty1));
scheduler.start(); scheduler.start();
ASSERT_NOT_REACHED(); ASSERT_NOT_REACHED();
} }
@ -193,17 +193,9 @@ static void init2(void* tty1)
Process::current().exit(); Process::current().exit();
}, nullptr }, nullptr
)); ));
return;
MUST(Process::create_kernel( //jump_userspace();
[](void*) //return;
{
}, nullptr
));
jump_userspace();
return;
MUST(Process::create_kernel( MUST(Process::create_kernel(
[](void*) [](void*)