starting to work on pty drivers, fork(), and scheduler redesign

This commit is contained in:
2026-07-07 00:13:24 -05:00
parent 6d7a23d747
commit 177a0b8fe9
29 changed files with 859 additions and 111 deletions

View File

@@ -3,6 +3,10 @@
#include <stdint.h>
#include <vfs.h>
#define MAX_PROCESS_FDS 32
typedef enum {
STATE_READY = 1,
STATE_SLEEPING = 2,
@@ -16,7 +20,8 @@ typedef enum {
PROCESS_FLAG_USER = 1 << 1
} process_flags_t;
typedef struct {
struct process_t;
typedef struct process_t {
uint32_t pid;
uint32_t esp;
uint32_t kstack_top;
@@ -25,6 +30,8 @@ typedef struct {
uint32_t sleep;
uint32_t heap_end;
uint32_t flags;
file_t* fd_table[MAX_PROCESS_FDS];
struct process_t* sched_next;
} __attribute__((packed)) process_t;
#endif