diff options
author | Frans Kaashoek <[email protected]> | 2016-09-14 13:01:53 -0400 |
---|---|---|
committer | Frans Kaashoek <[email protected]> | 2016-09-14 13:01:53 -0400 |
commit | 6cec0211d8978d21d4206631549812877ae26f1a (patch) | |
tree | 39190898452255b49aae984d7e07bd0ee0e3e33b | |
parent | da91a3a408d3f26de8d46cb73474207b5d7c802a (diff) | |
download | xv6-labs-6cec0211d8978d21d4206631549812877ae26f1a.tar.gz xv6-labs-6cec0211d8978d21d4206631549812877ae26f1a.tar.bz2 xv6-labs-6cec0211d8978d21d4206631549812877ae26f1a.zip |
Update comment a bit.
-rw-r--r-- | spinlock.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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(); |