1
0
Fork 0
mirror of https://github.com/hermitcore/libhermit.git synced 2025-03-09 00:00:03 +01:00

add system call to yield the processor

This commit is contained in:
Stefan Lankes 2016-03-12 23:15:36 +01:00
parent 8e3e46500f
commit 89cf77b230
3 changed files with 7 additions and 1 deletions

View file

@ -87,6 +87,7 @@ size_t sys_get_ticks(void);
int sys_rcce_init(int session_id);
size_t sys_rcce_malloc(int session_id, int ue);
int sys_rcce_fini(int session_id);
void sys_yield(void);
#define __NR_exit 0
#define __NR_write 1

View file

@ -578,6 +578,11 @@ int sys_stat(const char* file, /*struct stat *st*/ void* st)
return -ENOSYS;
}
void sys_yield(void)
{
check_workqueues();
}
#if 0
int fork(void)
{

@ -1 +1 @@
Subproject commit 9dbfa59e382fd99164b2d80d620dab5decced3d0
Subproject commit d95172f98a56d4a300a438112a1220d6489168be