Files
my-os-project2/kernel/syscall/sched.c

18 lines
347 B
C

#include <stdint.h>
#include "syscall/syscall.h"
#include "syscall/sched.h"
#include "proc/proc.h"
#include "spinlock/spinlock.h"
#include "intr/pit.h"
#include "errors.h"
int32_t SYSCALL0(sys_schedrelease) {
return E_DOSCHEDULING;
}
int32_t SYSCALL1(sys_schedsleep, ms1) {
uint32_t ms = (uint32_t)ms1;
intr_pit_wait(ms);
return E_OK;
}