acassis commented on code in PR #7335:
URL: https://github.com/apache/incubator-nuttx/pull/7335#discussion_r997049839


##########
arch/sparc/include/spinlock.h:
##########
@@ -44,12 +44,10 @@
 
 /* The Type of a spinlock.
  *
- * This must be a uint32_ becaue it will be set using S32C1I instruction.
- * That instruction atomically stores to a memory location only if its
- * current value is the expected one.  The state register (SCOMPARE1) is
- * used to provide the additional comparison operand. Some implementations
- * also have a state register (ATOMCTL) for further control of the atomic
- * operation in cache and on the PIF bus.
+ * This must be a uint32_ becaue it will be set using CASA instruction.

Review Comment:
   ```suggestion
    * This must be a uint32_ because it will be set using CASA instruction.
   ```



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to