summaryrefslogtreecommitdiff
path: root/spinlock.h
diff options
context:
space:
mode:
cvs add spinlock.h
fix race in schedule()
Diffstat (limited to 'spinlock.h')
-rw-r--r--spinlock.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/spinlock.h b/spinlock.h
new file mode 100644
index 0000000..ee0a26c
--- /dev/null
+++ b/spinlock.h
@@ -0,0 +1,6 @@
+struct spinlock {
+ unsigned int locked;
+ struct proc *p;
+ int count;
+ unsigned locker_pc;
+};