Fixes a bug with sparc's atomic_sub_and_test()
authorBarret Rhoden <brho@cs.berkeley.edu>
Fri, 15 Oct 2010 01:14:56 +0000 (18:14 -0700)
committerKevin Klues <klueska@cs.berkeley.edu>
Thu, 3 Nov 2011 00:35:55 +0000 (17:35 -0700)
commit9d81ada36f8530a10840b629dbad44e7e2e2690f
tree177941e381ab591ae2743c2d6a359ed513a8bbca
parentf350e077b04b8c45046516f83b90660a5c74e97a
Fixes a bug with sparc's atomic_sub_and_test()

Careful with negative (or large) numbers with these tricksy atomics!
Also touches up a couple other things that were discovered while messing
with sparc.
kern/arch/sparc/atomic.h
kern/include/kref.h
kern/src/vfs.c