Rework shared headers

This commit is contained in:
2025-09-05 17:08:40 +02:00
parent 708c53c64d
commit f42c4b7e44
15 changed files with 28 additions and 20 deletions

View File

@ -5,6 +5,7 @@
#include "hal/hal.h"
#include "spinlock/spinlock.h"
#include "bitmap/bitmap.h"
#include "vfs/vfs.h"
#define PROC_NAME_MAX 0x100
@ -12,6 +13,7 @@
#define PROC_STACKSIZE (PROC_STACKBLOCKS * BITMAP_BLOCK_SIZE)
#define PROC_MAX 0x100 // max amount of processes
#define PROC_VFSHANDLES_MAX 0x80
typedef struct {
IntrStackFrame trapframe;
@ -28,12 +30,17 @@ enum {
typedef struct Proc {
struct Proc *next;
uint64_t pid;
char name[PROC_NAME_MAX];
ProcPlatformData platformdata;
uint8_t state;
VasRange *vas;
bool kern;
VfsObj *vobjs[PROC_VFSHANDLES_MAX];
} Proc;
typedef struct {