feat: introduced tasking, added paging (no vm), moved malloc, added
syscalls, other stuff
This commit is contained in:
20
kernel/cpu/syscall_handler.c
Normal file
20
kernel/cpu/syscall_handler.c
Normal file
@@ -0,0 +1,20 @@
|
||||
//
|
||||
// Created by rick on 24-02-21.
|
||||
//
|
||||
|
||||
#include "syscall_handler.h"
|
||||
#include <syscall.h>
|
||||
#include <tasks/task.h>
|
||||
|
||||
void syscall_handle(isr_registers_t *registers) {
|
||||
switch (registers->eax) {
|
||||
case SYSCALL_START_SCHEDULER:
|
||||
task_start_first();
|
||||
break;
|
||||
case SYSCALL_YIELD_JOB:
|
||||
task_switch_next();
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user