Skip to content
Commit 47205850 authored by Peter Bigot's avatar Peter Bigot Committed by Anas Nashif
Browse files

arch: sparc: fix memory barrier behavior of arch_irq_*lock



Correct functioning of spinlocks requires that they be memory barriers.
Most architectures achieve this by using the GCC extended asm syntax to
force a compiler soft barrier at the point the interrupt status is
changing.  This clobber was missing from the SPARC definition, so add
it.

Signed-off-by: default avatarPeter Bigot <peter.bigot@nordicsemi.no>
parent 258877a9
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment