Skip to content

Commit

Permalink
arm7: Add ARCH_HAS_ATOMIC_SET_RETURN
Browse files Browse the repository at this point in the history
  • Loading branch information
Joakim Gebart committed May 7, 2015
1 parent 96ca6a6 commit f15fc17
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions cpu/arm7_common/include/arm_cpu.h
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@
* directory for more details.
*/

#ifndef _ARM_CPU_H
#define _ARM_CPU_H
#ifndef ARM_CPU_H_
#define ARM_CPU_H_

#include <stdint.h>
#include "VIC.h"
Expand All @@ -17,6 +17,11 @@
extern "C" {
#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 WORDSIZE 32

Expand Down Expand Up @@ -44,4 +49,4 @@ int uart0_puts(char *astring, int length);
}
#endif

#endif // _ARM_CPU_H
#endif /* ARM_CPU_H_ */

0 comments on commit f15fc17

Please sign in to comment.