Skip to content
Snippets Groups Projects
Commit e46fb46f authored by kaashoek's avatar kaashoek
Browse files

acquire+release ide_lock in ide_intr

parent 8455980b
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment