starting to work on pty drivers, fork(), and scheduler redesign
This commit is contained in:
@@ -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
|
||||
Reference in New Issue
Block a user