acquire+release ide_lock in ide_intr
This commit is contained in:
parent
8455980b27
commit
e46fb46fcf
1 changed files with 3 additions and 1 deletions
4
ide.c
4
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
|
||||
|
|
Loading…
Reference in a new issue