diff options
author | rtm <rtm> | 2006-07-12 09:10:25 +0000 |
---|---|---|
committer | rtm <rtm> | 2006-07-12 09:10:25 +0000 |
commit | 664324745e2257289f7a61e43892ce6e8b8ed9b7 (patch) | |
tree | 63a538ce874736cb262b83f7358157cfcc99d034 /spinlock.h | |
parent | 4e8f237be819424f922399f8d121d9867b675541 (diff) | |
download | xv6-labs-664324745e2257289f7a61e43892ce6e8b8ed9b7.tar.gz xv6-labs-664324745e2257289f7a61e43892ce6e8b8ed9b7.tar.bz2 xv6-labs-664324745e2257289f7a61e43892ce6e8b8ed9b7.zip |
cvs add spinlock.h
fix race in schedule()
Diffstat (limited to 'spinlock.h')
-rw-r--r-- | spinlock.h | 6 |
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; +}; |