diff options
author | rsc <rsc> | 2006-07-17 05:00:25 +0000 |
---|---|---|
committer | rsc <rsc> | 2006-07-17 05:00:25 +0000 |
commit | 0dd4253747eef56d0f1539fac7d62234f6af5f51 (patch) | |
tree | 1c28a6d0ce4cef90f85fd5f8b0106d431bfeffda /defs.h | |
parent | b5f17007f41770fee97fa850635976ceb7aa7492 (diff) | |
download | xv6-labs-0dd4253747eef56d0f1539fac7d62234f6af5f51.tar.gz xv6-labs-0dd4253747eef56d0f1539fac7d62234f6af5f51.tar.bz2 xv6-labs-0dd4253747eef56d0f1539fac7d62234f6af5f51.zip |
add ide_lock for sleep
Diffstat (limited to 'defs.h')
-rw-r--r-- | defs.h | 7 |
1 files changed, 3 insertions, 4 deletions
@@ -61,10 +61,9 @@ int cpu(void); // spinlock.c struct spinlock; -void acquire(struct spinlock * lock); -void release(struct spinlock * lock); -void acquire1(struct spinlock * lock, struct proc *); -void release1(struct spinlock * lock, struct proc *); +void acquire(struct spinlock*); +void release(struct spinlock*); +int holding(struct spinlock*); // main.c void load_icode(struct proc *p, uint8_t *binary, uint size); |