armv7-a, armv7-r, armv7-m: Add atomic read-add-write and read-subtract-write functions.

This commit is contained in:
Gregory Nutt
2018-02-04 12:22:03 -06:00
parent 97937d3d47
commit 1e59d9dd14
32 changed files with 1111 additions and 35 deletions
+1 -1
View File
@@ -79,7 +79,7 @@ typedef uint32_t spinlock_t;
* Description:
* Perform an atomic test and set operation on the provided spinlock.
*
* This function must be provided via the architecture-specific logoic.
* This function must be provided via the architecture-specific logic.
*
* Input Parameters:
* lock - The address of spinlock object.
+1 -1
View File
@@ -91,7 +91,7 @@ static inline uint32_t xtensa_compareset(FAR volatile uint32_t *addr,
* Description:
* Perform an atomic test and set operation on the provided spinlock.
*
* This function must be provided via the architecture-specific logoic.
* This function must be provided via the architecture-specific logic.
*
* Input Parameters:
* lock - The address of spinlock object.