summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFrans Kaashoek <[email protected]>2016-09-14 13:01:53 -0400
committerFrans Kaashoek <[email protected]>2016-09-14 13:01:53 -0400
commit6cec0211d8978d21d4206631549812877ae26f1a (patch)
tree39190898452255b49aae984d7e07bd0ee0e3e33b
parentda91a3a408d3f26de8d46cb73474207b5d7c802a (diff)
downloadxv6-labs-6cec0211d8978d21d4206631549812877ae26f1a.tar.gz
xv6-labs-6cec0211d8978d21d4206631549812877ae26f1a.tar.bz2
xv6-labs-6cec0211d8978d21d4206631549812877ae26f1a.zip
Update comment a bit.
-rw-r--r--spinlock.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/spinlock.c b/spinlock.c
index 7b372ef..64bb64a 100644
--- a/spinlock.c
+++ b/spinlock.c
@@ -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();