提交 6cec0211 创建 作者: Frans Kaashoek's avatar Frans Kaashoek

Update comment a bit.

上级 da91a3a4
...@@ -61,7 +61,7 @@ release(struct spinlock *lk) ...@@ -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();
......
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论