mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 08:08:12 +00:00
Move the scheduler code to its own class.
This is very mechanical.
This commit is contained in:
parent
6304c771dd
commit
39d2fcbbee
8 changed files with 336 additions and 318 deletions
|
@ -2,6 +2,7 @@
|
|||
#include "Process.h"
|
||||
#include "Syscall.h"
|
||||
#include "Console.h"
|
||||
#include "Scheduler.h"
|
||||
|
||||
extern "C" void syscall_entry(RegisterDump&);
|
||||
extern "C" void syscall_ISR();
|
||||
|
@ -48,7 +49,7 @@ static DWORD handle(RegisterDump& regs, DWORD function, DWORD arg1, DWORD arg2,
|
|||
ASSERT_INTERRUPTS_ENABLED();
|
||||
switch (function) {
|
||||
case Syscall::SC_yield:
|
||||
sched_yield();
|
||||
Scheduler::yield();
|
||||
break;
|
||||
case Syscall::SC_putch:
|
||||
Console::the().putChar(arg1 & 0xff);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue