Implement proc_spawn_thread syscall, fix proc_resume and proc_suspend
All checks were successful
Build documentation / build-and-deploy (push) Successful in 35s

This commit is contained in:
2026-01-16 00:26:37 +01:00
parent ebd9f0cac6
commit 711da8aeab
12 changed files with 219 additions and 51 deletions

View File

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

View File

@@ -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