mirror of
https://github.com/apache/nuttx.git
synced 2026-05-31 14:27:37 +08:00
Correct some comments
This commit is contained in:
@@ -105,7 +105,7 @@ up_testset:
|
|||||||
/* Not locked ... attempt to lock it */
|
/* Not locked ... attempt to lock it */
|
||||||
|
|
||||||
strexb r2, r1, [r0] /* Attempt to set the locked state */
|
strexb r2, r1, [r0] /* Attempt to set the locked state */
|
||||||
cmp r2, r1 /* r2 will be 1 is strexb succeeded */
|
cmp r2, r1 /* r2 will be 1 is strexb failed */
|
||||||
beq 1b /* Failed to lock... try again */
|
beq 1b /* Failed to lock... try again */
|
||||||
|
|
||||||
/* Lock acquired -- return SP_UNLOCKED */
|
/* Lock acquired -- return SP_UNLOCKED */
|
||||||
|
|||||||
@@ -103,7 +103,7 @@ up_testset:
|
|||||||
/* Not locked ... attempt to lock it */
|
/* Not locked ... attempt to lock it */
|
||||||
|
|
||||||
strexb r2, r1, [r0] /* Attempt to set the locked state */
|
strexb r2, r1, [r0] /* Attempt to set the locked state */
|
||||||
cmp r2, r1 /* r2 will be 1 is strexb succeeded */
|
cmp r2, r1 /* r2 will be 1 is strexb failed */
|
||||||
beq 1b /* Failed to lock... try again */
|
beq 1b /* Failed to lock... try again */
|
||||||
|
|
||||||
/* Lock acquired -- return SP_UNLOCKED */
|
/* Lock acquired -- return SP_UNLOCKED */
|
||||||
|
|||||||
Reference in New Issue
Block a user