Cleaned up memory barrier usage (XCC)
authorBarret Rhoden <brho@cs.berkeley.edu>
Sun, 25 Sep 2011 23:16:34 +0000 (16:16 -0700)
committerKevin Klues <klueska@cs.berkeley.edu>
Thu, 3 Nov 2011 00:36:07 +0000 (17:36 -0700)
commit27859beee946fea5ea5e612c229206f9a0ce3575
treed030c303d9ac367e150f3dd71aee8c7c1d791a00
parent7e3fce35b600bb5505641e2d8e17cf97382727b9
Cleaned up memory barrier usage (XCC)

Cleaned up the use of memory barriers in our shared memory
synchronization code (event stuff, locking stuff, etc).  Check out the
documentation if you plan to write any concurrent, shared memory code
that doesn't use locking.
17 files changed:
Documentation/memory_barriers.txt [new file with mode: 0644]
kern/arch/i686/atomic.h
kern/arch/i686/ros/membar.h
kern/arch/riscv/ros/membar.h
kern/arch/sparc/ros/membar.h
kern/include/atomic.h
kern/include/ros/atomic.h
kern/src/event.c
kern/src/process.c
kern/src/syscall.c
user/parlib/event.c
user/parlib/include/i686/vcore.h
user/parlib/mcs.c
user/parlib/ucq.c
user/parlib/uthread.c
user/parlib/vcore.c
user/pthread/pthread.c