Implement schedsleep() syscall to sleep a process for a given time

This commit is contained in:
2025-11-02 16:46:37 +01:00
parent 179c4b98e2
commit 0f93aa2a81
9 changed files with 29 additions and 6 deletions

View File

@ -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);
}