Inlines spinlocks when not using SPINLOCK_DEBUG
authorBarret Rhoden <brho@cs.berkeley.edu>
Thu, 20 Dec 2012 03:20:34 +0000 (19:20 -0800)
committerBarret Rhoden <brho@cs.berkeley.edu>
Thu, 20 Dec 2012 03:20:34 +0000 (19:20 -0800)
commit1e46a60621f11df6006df1f900ca0183f8ce3af6
tree9a897ee220db69ff81def3662e53c04123c34b74
parent18fd12f5b28246cedf29846c831696339675e70c
Inlines spinlocks when not using SPINLOCK_DEBUG

This one's for Andrew.  =)  Additionally, this moves the responsibility
for memory barriers to the architectures, which cuts down on the number
of full mb()s needed by RISCV (esp since Andrew was already doing one in
there).

Also, I imagine sparc wasn't compiling, so this might work for them too,
if anyone still uses it.
kern/arch/i686/atomic.h
kern/arch/sparc/atomic.h
kern/include/atomic.h
kern/src/atomic.c