Move the scheduler code to its own class.

This is very mechanical.
This commit is contained in:
Andreas Kling 2018-11-07 22:15:02 +01:00
commit 39d2fcbbee
Notes: sideshowbarker 2024-07-19 18:32:14 +09:00
8 changed files with 336 additions and 318 deletions

View file

@ -26,6 +26,7 @@
#include "ProcFileSystem.h"
#include "RTC.h"
#include "VirtualConsole.h"
#include "Scheduler.h"
#define TEST_VFS
#define KSYMS
@ -311,7 +312,7 @@ void init()
Process::create_kernel_process(undertaker_main, "undertaker");
Process::create_kernel_process(init_stage2, "init");
scheduleNewProcess();
Scheduler::pick_next();
sti();