Update comment a bit.

This commit is contained in:
Frans Kaashoek 2016-09-14 13:01:53 -04:00
parent da91a3a408
commit 6cec0211d8

View file

@ -61,7 +61,7 @@ release(struct spinlock *lk)
// Release the lock, equivalent to lk->locked = 0. // Release the lock, equivalent to lk->locked = 0.
// This code can't use a C assignment, since it might // 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) : ); asm volatile("movl $0, %0" : "+m" (lk->locked) : );
popcli(); popcli();