arch/arc: fixes native C version of atomic_nand

Change-Id: I2f493e2c7cb841ef1273e628701d3b087d402e3f
Signed-off-by: Daniel Leung <daniel.leung@intel.com>
This commit is contained in:
Daniel Leung 2016-01-29 09:12:26 -08:00 committed by Anas Nashif
commit cb76f11259

View file

@ -354,7 +354,7 @@ FUNC_NO_FP atomic_val_t atomic_nand(atomic_t *target, atomic_val_t value)
key = irq_lock();
ret = *target;
*target = !(*target & value);
*target = ~(*target & value);
irq_unlock(key);