kernel: expose threads to userspace (newthread and threadexit syscalls)

This commit is contained in:
Matheus
2024-04-14 16:12:52 -03:00
parent 2cb94c2c2e
commit 6d04deeac9
7 changed files with 147 additions and 41 deletions
+1
View File
@@ -12,6 +12,7 @@
#define SCHED_THREAD_FLAGS_SLEEP 4
#define SCHED_THREAD_FLAGS_INTERRUPTIBLE 8
#define SCHED_THREAD_FLAGS_PREEMPTED 16
#define SCHED_THREAD_FLAGS_DEAD 32
#define SCHED_PROC_STATE_NORMAL 0
#define SCHED_PROC_STATE_ZOMBIE 1