more userspace stuff
This commit is contained in:
@@ -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
|
||||
Reference in New Issue
Block a user