From cc23ea5a4b38807e79aceb23e6f43e965926618f Mon Sep 17 00:00:00 2001 From: Jon Santmyer Date: Fri, 9 Oct 2026 10:24:41 -0400 Subject: add basic scheduler logic. rename init rootdir indexes --- api/process.h | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) (limited to 'api/process.h') diff --git a/api/process.h b/api/process.h index 080e001..5ccf69d 100644 --- a/api/process.h +++ b/api/process.h @@ -5,4 +5,22 @@ typedef intmax_t pid_t; +enum pcb_state +{ + _PCB_STATE_INVALID = 0, + PCB_STATE_DEAD, + PCB_STATE_EMBRYO, + PCB_STATE_READY, + PCB_STATE_RUNNING, + PCB_STATE_WAITING, + PCB_STATE_BLOCKED_MAIL +}; + +enum pcb_rootdir_entries +{ + _PCB_ROOTDIR_NULL = 0, + PCB_ROOTDIR_SELF_I, + PCB_ROOTDIR_PAGEDIR_I, +}; + #endif -- cgit v1.2.3