WIP
This commit is contained in:
@ -11,7 +11,7 @@
|
||||
|
||||
#define PROC_NAME_MAX 0x100
|
||||
|
||||
#define PROC_STACKBLOCKS 32
|
||||
#define PROC_STACKBLOCKS 256
|
||||
#define PROC_STACKSIZE (PROC_STACKBLOCKS * BITMAP_BLOCK_SIZE)
|
||||
|
||||
#define PROC_MAX 0x100 // max amount of processes
|
||||
@ -19,13 +19,14 @@
|
||||
#define PROC_VFSHANDLES_MAX 0x80
|
||||
#define PROC_PIPEHANDLES_MAX 0x20
|
||||
|
||||
#define PROC_MMAN_MAP_BASE 0xC000000000
|
||||
#define PROC_MMAN_MAP_BASE 0x0000004000000000ULL
|
||||
#define PROC_USER_STACK_TOP 0x00007ffffffff000ULL
|
||||
|
||||
typedef struct {
|
||||
IntrStackFrame trapframe;
|
||||
uint8_t *kstack;
|
||||
uint8_t *pstack;
|
||||
PgTable *cr3;
|
||||
uint64_t cr3;
|
||||
} ProcPlatformData;
|
||||
|
||||
enum {
|
||||
@ -33,6 +34,7 @@ enum {
|
||||
PROC_READY = 1,
|
||||
PROC_ZOMBIE = 2,
|
||||
PROC_WAITING = 3,
|
||||
PROC_DIED = 4,
|
||||
};
|
||||
|
||||
typedef struct ProcArg {
|
||||
|
Reference in New Issue
Block a user