diff options
author | Russ Cox <[email protected]> | 2009-08-30 23:02:08 -0700 |
---|---|---|
committer | Russ Cox <[email protected]> | 2009-08-30 23:02:08 -0700 |
commit | 48755214c9a02d6249caf3126d3b41d67eda4730 (patch) | |
tree | 2edc8b996fd7c3ef2da8876d657140e242999d93 /spinlock.h | |
parent | 0aef8914959af9e472852611eb6352c211093d35 (diff) | |
download | xv6-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.h | 10 |
1 files changed, 5 insertions, 5 deletions
@@ -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. }; |