18 lines
325 B
C
18 lines
325 B
C
#include <stdint.h>
|
|
#include "syscall.h"
|
|
#include "sched.h"
|
|
#include "proc/proc.h"
|
|
#include "spinlock/spinlock.h"
|
|
#include "errors.h"
|
|
#include "hal/hal.h"
|
|
|
|
int32_t SYSCALL0(sys_schedrelease) {
|
|
return E_DOSCHEDULING;
|
|
}
|
|
|
|
int32_t SYSCALL1(sys_schedsleep, ms1) {
|
|
uint32_t ms = (uint32_t)ms1;
|
|
hal_wait(ms);
|
|
return E_OK;
|
|
}
|