summaryrefslogtreecommitdiff
path: root/ide.c
diff options
context:
space:
mode:
authorFrans Kaashoek <[email protected]>2017-01-31 17:47:16 -0500
committerFrans Kaashoek <[email protected]>2017-01-31 17:47:16 -0500
commitabf847a083888bbed4260ecacf849ea19f23e810 (patch)
tree4ae9b3487bbfe27f6382486bf877917dbb8bc030 /ide.c
parent59cdd6c63b89395d64ec9550181af5ed569b8466 (diff)
downloadxv6-labs-abf847a083888bbed4260ecacf849ea19f23e810.tar.gz
xv6-labs-abf847a083888bbed4260ecacf849ea19f23e810.tar.bz2
xv6-labs-abf847a083888bbed4260ecacf849ea19f23e810.zip
Start of an experiment to remove the use of gs for cpu local variables.
Diffstat (limited to 'ide.c')
-rw-r--r--ide.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/ide.c b/ide.c
index b3112b9..881fe0d 100644
--- a/ide.c
+++ b/ide.c
@@ -108,9 +108,9 @@ ideintr(void)
// First queued buffer is the active request.
acquire(&idelock);
+
if((b = idequeue) == 0){
release(&idelock);
- // cprintf("spurious IDE interrupt\n");
return;
}
idequeue = b->qnext;
@@ -164,5 +164,6 @@ iderw(struct buf *b)
sleep(b, &idelock);
}
+
release(&idelock);
}