Fixes spin_trylock()
authorBarret Rhoden <brho@cs.berkeley.edu>
Tue, 8 Oct 2013 17:23:07 +0000 (10:23 -0700)
committerBarret Rhoden <brho@cs.berkeley.edu>
Thu, 16 Jan 2014 02:23:22 +0000 (18:23 -0800)
commitde93451e3538894226be69bf039ec5f1f63e5899
tree2925d1db592ade1ba4c0c304c836a81ea8dcda67
parent0c085d561ce72df5d850bd8b24846a56aa708f43
Fixes spin_trylock()

Was returning TRUE on failure, instead of on success.
kern/arch/riscv/atomic.h
kern/arch/x86/atomic.h