diff --git a/include/kernel/proc.h b/include/kernel/proc.h index 044cc0c..6a58638 100644 --- a/include/kernel/proc.h +++ b/include/kernel/proc.h @@ -5,6 +5,10 @@ #include #include +#define PROC_RUNNING 0 +#define PROC_STOPPED 1 +#define PROC_BLOCKED 2 + typedef uint64_t pid_t; struct procregs { @@ -40,6 +44,7 @@ struct proc { uint64_t cr3; bool is_kernel; + uint8_t state; }; struct procregs *proc_current_regs();