scheduler: continue rework

This commit is contained in:
Matheus
2025-08-20 22:00:25 -03:00
parent 5098c09f26
commit 136c86354c
26 changed files with 348 additions and 154 deletions
+5
View File
@@ -16,6 +16,10 @@
struct proc_t;
#define THREAD_CLASS_TIMESHARE 0
#define THREAD_CLASS_REAL_TIME 1
#define THREAD_CLASS_IDLE 2
typedef struct thread_t {
void *kernelstacktop;
struct thread_t *next;
@@ -40,6 +44,7 @@ typedef struct thread_t {
bool shouldexit;
void *kernelarg;
context_t *usercopyctx;
int class;
struct {
spinlock_t lock;
eventheader_t waitpendingevent;