From 020c8e2384877ffc13579f633ac3c723f80baf8c Mon Sep 17 00:00:00 2001 From: Robert Morris Date: Mon, 4 Aug 2014 06:13:49 -0400 Subject: use acquire/release to force order for pid=np->pid;np->state=RUNNING for bug reported by symingz@gmail.com and cs1100254@cse.iitd.ernet.in --- proc.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'proc.h') 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 -- cgit v1.2.3