Skip to content

Commit

Permalink
Update comment a bit.
Browse files Browse the repository at this point in the history
  • Loading branch information
kaashoek committed Sep 14, 2016
1 parent da91a3a commit 6cec021
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion spinlock.c
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ release(struct spinlock *lk)

// Release the lock, equivalent to lk->locked = 0.
// This code can't use a C assignment, since it might
// not be atomic.
// not be atomic. A real OS would use C atomics here.
asm volatile("movl $0, %0" : "+m" (lk->locked) : );

popcli();
Expand Down

0 comments on commit 6cec021

Please sign in to comment.