acquire+release ide_lock in ide_intr

This commit is contained in:
kaashoek 2006-07-29 01:20:15 +00:00
parent 8455980b27
commit e46fb46fcf

4
ide.c
View file

@ -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