more userspace stuff

This commit is contained in:
2026-07-01 20:00:22 -05:00
parent af6c1c94cf
commit b6ee4fc3de
21 changed files with 161 additions and 121 deletions

View File

@@ -10,15 +10,21 @@ typedef enum {
STATE_DEAD
} process_state_t;
typedef enum {
PROCESS_FLAG_NONE = 0,
PROCESS_FLAG_KERNEL = 1 << 0,
PROCESS_FLAG_USER = 1 << 1
} process_flags_t;
typedef struct {
uint32_t pid;
uint32_t esp;
uint32_t esp0;
uint32_t kstack_top;
uint32_t cr3;
process_state_t state;
uint32_t sleep;
void* next;
uint32_t heap_end;
uint32_t flags;
} __attribute__((packed)) process_t;
#endif