Implement schedsleep() syscall to sleep a process for a given time
This commit is contained in:
@ -23,6 +23,10 @@ int32_t schedrelease(void) {
|
||||
return syscall(SYS_SCHEDRELEASE, 0, 0, 0, 0, 0, 0);
|
||||
}
|
||||
|
||||
int32_t schedsleep(uint32_t ms) {
|
||||
return syscall(SYS_SCHEDSLEEP, (uint64_t)ms, 0, 0, 0, 0, 0);
|
||||
}
|
||||
|
||||
int32_t rand(void) {
|
||||
return syscall(SYS_RAND, 0, 0, 0, 0, 0, 0);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user