arm7: Add ARCH_HAS_ATOMIC_SET_RETURN

This commit is contained in:
Joakim Gebart 2015-05-06 07:58:09 +02:00
parent 96ca6a6bef
commit f15fc173b9

View File

@ -6,8 +6,8 @@
* directory for more details. * directory for more details.
*/ */
#ifndef _ARM_CPU_H #ifndef ARM_CPU_H_
#define _ARM_CPU_H #define ARM_CPU_H_
#include <stdint.h> #include <stdint.h>
#include "VIC.h" #include "VIC.h"
@ -17,6 +17,11 @@
extern "C" { extern "C" {
#endif #endif
/**
* @brief ARM has architecture specific atomic_set_return in atomic.s
*/
#define ARCH_HAS_ATOMIC_SET_RETURN 1
#define NEW_TASK_CPSR 0x1F #define NEW_TASK_CPSR 0x1F
#define WORDSIZE 32 #define WORDSIZE 32
@ -44,4 +49,4 @@ int uart0_puts(char *astring, int length);
} }
#endif #endif
#endif // _ARM_CPU_H #endif /* ARM_CPU_H_ */