summaryrefslogtreecommitdiff
path: root/proc.h
diff options
context:
space:
mode:
authorRobert Morris <[email protected]>2014-08-04 06:13:49 -0400
committerRobert Morris <[email protected]>2014-08-04 06:13:49 -0400
commit020c8e2384877ffc13579f633ac3c723f80baf8c (patch)
treebcc593b814cfc416c6ba08d386bd6d269c7fa157 /proc.h
parent86188d9d49fe62a2f4d8b0677d33608b3b949336 (diff)
downloadxv6-labs-020c8e2384877ffc13579f633ac3c723f80baf8c.tar.gz
xv6-labs-020c8e2384877ffc13579f633ac3c723f80baf8c.tar.bz2
xv6-labs-020c8e2384877ffc13579f633ac3c723f80baf8c.zip
use acquire/release to force order for pid=np->pid;np->state=RUNNING
for bug reported by [email protected] and [email protected]
Diffstat (limited to 'proc.h')
-rw-r--r--proc.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/proc.h b/proc.h
index 6561ad3..3b9c3ac 100644
--- a/proc.h
+++ b/proc.h
@@ -57,7 +57,7 @@ struct proc {
pde_t* pgdir; // Page table
char *kstack; // Bottom of kernel stack for this process
enum procstate state; // Process state
- volatile int pid; // Process ID
+ int pid; // Process ID
struct proc *parent; // Parent process
struct trapframe *tf; // Trap frame for current syscall
struct context *context; // swtch() here to run process