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:
parent
61e6f4a299
commit
cb76f11259
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue