did some restructuring, got multitasking almost working

This commit is contained in:
2026-06-26 20:05:01 -05:00
parent 57d7d34c6d
commit 43bc0df81a
35 changed files with 481 additions and 307 deletions

20
kernel/process.h Normal file
View File

@@ -0,0 +1,20 @@
#ifndef KPROCESS_H
#define KPROCESS_H
#include <stdint.h>
typedef enum {
STATE_READY,
STATE_SLEEPING,
STATE_DEAD
} process_state_t;
typedef struct {
uint32_t pid;
uint32_t esp;
uint32_t cr3;
process_state_t state;
uint32_t sleep;
} __attribute__((packed)) process_t;
#endif