summaryrefslogtreecommitdiff
path: root/spinlock.h
diff options
context:
space:
mode:
authorRuss Cox <[email protected]>2009-08-30 23:02:08 -0700
committerRuss Cox <[email protected]>2009-08-30 23:02:08 -0700
commit48755214c9a02d6249caf3126d3b41d67eda4730 (patch)
tree2edc8b996fd7c3ef2da8876d657140e242999d93 /spinlock.h
parent0aef8914959af9e472852611eb6352c211093d35 (diff)
downloadxv6-labs-48755214c9a02d6249caf3126d3b41d67eda4730.tar.gz
xv6-labs-48755214c9a02d6249caf3126d3b41d67eda4730.tar.bz2
xv6-labs-48755214c9a02d6249caf3126d3b41d67eda4730.zip
assorted fixes:
* rename c/cp to cpu/proc * rename cpu.context to cpu.scheduler * fix some comments * formatting for printout
Diffstat (limited to 'spinlock.h')
-rw-r--r--spinlock.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/spinlock.h b/spinlock.h
index a9242b6..fdda016 100644
--- a/spinlock.h
+++ b/spinlock.h
@@ -1,11 +1,11 @@
// Mutual exclusion lock.
struct spinlock {
- uint locked; // Is the lock held?
+ uint locked; // Is the lock held?
// For debugging:
- char *name; // Name of lock.
- int cpu; // The number of the cpu holding the lock.
- uint pcs[10]; // The call stack (an array of program counters)
- // that locked the lock.
+ char *name; // Name of lock.
+ struct cpu *cpu; // The cpu holding the lock.
+ uint pcs[10]; // The call stack (an array of program counters)
+ // that locked the lock.
};