summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorrsc <rsc>2006-09-08 15:18:58 +0000
committerrsc <rsc>2006-09-08 15:18:58 +0000
commitba969aa6a85ad5d6cdfbefc063e50d23f30e9311 (patch)
treefae4c3e049f33c8659f0ac91e5e1862bd35ba2fb
parent5788b3604a5c57165bb65ccd5a75464ded18fa35 (diff)
downloadxv6-labs-ba969aa6a85ad5d6cdfbefc063e50d23f30e9311.tar.gz
xv6-labs-ba969aa6a85ad5d6cdfbefc063e50d23f30e9311.tar.bz2
xv6-labs-ba969aa6a85ad5d6cdfbefc063e50d23f30e9311.zip
make lines shorter
-rw-r--r--spinlock.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/spinlock.c b/spinlock.c
index f814632..9982e67 100644
--- a/spinlock.c
+++ b/spinlock.c
@@ -53,7 +53,7 @@ acquire(struct spinlock *lock)
// Serialize instructions: now that lock is acquired, make sure
// we wait for all pending writes from other processors.
- cpuid(0, 0, 0, 0, 0); // memory barrier (see Ch 7 of IA-32 manual, vol 3)
+ cpuid(0, 0, 0, 0, 0); // memory barrier (see Ch 7, IA-32 manual vol 3)
// Record info about lock acquisition for debugging.
// The +10 is only so that we can tell the difference
@@ -75,7 +75,7 @@ release(struct spinlock *lock)
// Serialize instructions: before unlocking the lock, make sure
// to flush any pending memory writes from this processor.
- cpuid(0, 0, 0, 0, 0); // memory barrier (see Ch 7 of IA-32 manual, vol 3)
+ cpuid(0, 0, 0, 0, 0); // memory barrier (see Ch 7, IA-32 manual vol 3)
lock->locked = 0;
if(--cpus[cpu()].nlock == 0)