summaryrefslogtreecommitdiff
path: root/proc.h
diff options
context:
space:
mode:
Diffstat (limited to 'proc.h')
-rw-r--r--proc.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/proc.h b/proc.h
index 39e1c49..6eba566 100644
--- a/proc.h
+++ b/proc.h
@@ -20,7 +20,10 @@ struct proc{
char *mem; // start of process's physical memory
unsigned sz; // total size of mem, including kernel stack
char *kstack; // kernel stack, separate from mem so it doesn't move
- enum { UNUSED, RUNNABLE, WAITING } state;
+ enum { UNUSED, RUNNABLE, WAITING, ZOMBIE } state;
+ int pid;
+ int ppid;
+ void *chan; // sleep
struct Taskstate ts; // only to give cpu address of kernel stack
struct Segdesc gdt[NSEGS];