Implement proc_spawn_thread syscall, fix proc_resume and proc_suspend
All checks were successful
Build documentation / build-and-deploy (push) Successful in 35s
All checks were successful
Build documentation / build-and-deploy (push) Successful in 35s
This commit is contained in:
@@ -35,3 +35,10 @@ int proc_mutex_lock (int mutex_rid) {
|
||||
int proc_mutex_unlock (int mutex_rid) {
|
||||
return syscall (SYS_PROC_MUTEX_UNLOCK, (uintptr_t)mutex_rid, 0, 0, 0, 0, 0);
|
||||
}
|
||||
|
||||
int proc_spawn_thread (uintptr_t vstack_top, size_t stack_size, void* entry) {
|
||||
return syscall (SYS_PROC_SPAWN_THREAD, vstack_top, (uintptr_t)stack_size, (uintptr_t)entry, 0, 0,
|
||||
0);
|
||||
}
|
||||
|
||||
int proc_sched (void) { return syscall (SYS_PROC_SCHED, 0, 0, 0, 0, 0, 0); }
|
||||
|
||||
@@ -25,5 +25,7 @@ int proc_drop_resource (int rid);
|
||||
int proc_create_resource_mutex (int rid, int vis);
|
||||
int proc_mutex_lock (int mutex_rid);
|
||||
int proc_mutex_unlock (int mutex_rid);
|
||||
int proc_spawn_thread (uintptr_t vstack_top, size_t stack_size, void* entry);
|
||||
int proc_sched (void);
|
||||
|
||||
#endif // _LIBMSL_M_PROC_H
|
||||
|
||||
Reference in New Issue
Block a user