From 6cec0211d8978d21d4206631549812877ae26f1a Mon Sep 17 00:00:00 2001 From: Frans Kaashoek Date: Wed, 14 Sep 2016 13:01:53 -0400 Subject: [PATCH] Update comment a bit. --- spinlock.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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();