summaryrefslogtreecommitdiff
path: root/ide.c
diff options
context:
space:
mode:
authorkaashoek <kaashoek>2006-07-29 01:20:15 +0000
committerkaashoek <kaashoek>2006-07-29 01:20:15 +0000
commite46fb46fcf4302bf5ed913101c5c7b510fe03ad4 (patch)
tree98e2c52a9a97fed7e98dae70429a96865266ba9f /ide.c
parent8455980b27a57e9c51693a4acbe91b820f4ab319 (diff)
downloadxv6-labs-e46fb46fcf4302bf5ed913101c5c7b510fe03ad4.tar.gz
xv6-labs-e46fb46fcf4302bf5ed913101c5c7b510fe03ad4.tar.bz2
xv6-labs-e46fb46fcf4302bf5ed913101c5c7b510fe03ad4.zip
acquire+release ide_lock in ide_intr
Diffstat (limited to 'ide.c')
-rw-r--r--ide.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/ide.c b/ide.c
index 291ab83..88a1d4d 100644
--- a/ide.c
+++ b/ide.c
@@ -53,8 +53,10 @@ ide_init(void)
void
ide_intr(void)
{
- cprintf("ide_intr\n");
+ acquire(&ide_lock);
+ cprintf("%d: ide_intr\n", cpu());
wakeup(&request[tail]);
+ release(&ide_lock);
}
int