Compare and Swap
authorBarret Rhoden <brho@cs.berkeley.edu>
Fri, 26 Mar 2010 01:34:12 +0000 (18:34 -0700)
committerKevin Klues <klueska@cs.berkeley.edu>
Thu, 3 Nov 2011 00:35:40 +0000 (17:35 -0700)
commit6e903cb7677ec4c684c02084c825618dd33c52ac
treebfb2cb071a15c287562940a9e5e75a2aa59cfb88
parent0a4b2ff2290ad7cc6d824475e291064f7a4b02e8
Compare and Swap

Provides atomic primitives for compare and swap.  The sparc ones are
horrendous, relying on a global lock.  Hopefully there's some hardware
support for that, and if not, then we'll need a better implementation.
kern/arch/i686/atomic.h
kern/arch/sparc/atomic.h