fixed mistakes around semaphores

This commit is contained in:
2022-08-30 19:42:30 +02:00
parent 6974c2b8e6
commit ededa69859
4 changed files with 12 additions and 11 deletions
+6 -6
View File
@@ -3,10 +3,10 @@
.text
.globl sem_post32
.type sem_post32, %function
.globl atom_inc32
.type atom_inc32, %function
sem_post32:
atom_inc32:
1:
ldrex r2, [r0]
add r2, r2, r1
@@ -17,10 +17,10 @@ sem_post32:
bx lr
.globl sem_wait32
.type sem_wait32, %function
.globl atom_dec32
.type atom_dec32, %function
sem_wait32:
atom_dec32:
1:
ldrex r2, [r0]
sub r2, r2, r1