diff options
Diffstat (limited to 'kernel/proc.h')
-rw-r--r-- | kernel/proc.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/kernel/proc.h b/kernel/proc.h index 278e4cd..687fdd1 100644 --- a/kernel/proc.h +++ b/kernel/proc.h @@ -78,10 +78,11 @@ struct trapframe { /* 280 */ uint64 t6; }; -enum procstate { UNUSED, EMBRYO, SLEEPING, RUNNABLE, RUNNING, ZOMBIE }; +enum procstate { UNUSED, SLEEPING, RUNNABLE, RUNNING, ZOMBIE }; // Per-process state struct proc { + struct spinlock lock; char *kstack; // Bottom of kernel stack for this process uint64 sz; // Size of process memory (bytes) pagetable_t pagetable; // Page table |