Support usage of __ARM_HAVE_LDREX_STREX
The __ARM_HAVE_LDREX_STREX define is used to replace the swp instruction with ldrex/strex for ARM architecture greater than 6 (armv6, armv7 etc.). However the include file, cpu-features.h, which defines this flag was never included. Change-Id: Ia35e18e8b228ec830b2b42b08909515110753f18 Signed-off-by: Christian Bejram <christian.bejram@stericsson.com>
This commit is contained in:
parent
312be567a0
commit
dd06eccffc
@ -26,6 +26,7 @@
|
|||||||
* SUCH DAMAGE.
|
* SUCH DAMAGE.
|
||||||
*/
|
*/
|
||||||
#include <sys/linux-syscalls.h>
|
#include <sys/linux-syscalls.h>
|
||||||
|
#include <machine/cpu-features.h>
|
||||||
|
|
||||||
.global __atomic_cmpxchg
|
.global __atomic_cmpxchg
|
||||||
.type __atomic_cmpxchg, %function
|
.type __atomic_cmpxchg, %function
|
||||||
|
Loading…
x
Reference in New Issue
Block a user