mirror of
https://github.com/apache/nuttx.git
synced 2026-06-04 06:42:32 +08:00
armv7-a, armv7-r, armv7-m: Add atomic read-add-write and read-subtract-write functions.
This commit is contained in:
@@ -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.
|
||||
|
||||
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user