[][src]Function sunrise_kernel::scheduler::create_first_process

pub unsafe fn create_first_process()

Creates the very first process at boot. The created process has 1 thread, which is marked as the current thread, and added to the schedule queue.

Safety

Use only for creating the very first process. Should never be used again after that. Must be using a valid KernelStack, a valid ActivePageTables.

Panics

Panics if the schedule queue was not empty