diff options
| author | kaashoek <kaashoek> | 2006-07-29 01:20:15 +0000 | 
|---|---|---|
| committer | kaashoek <kaashoek> | 2006-07-29 01:20:15 +0000 | 
| commit | e46fb46fcf4302bf5ed913101c5c7b510fe03ad4 (patch) | |
| tree | 98e2c52a9a97fed7e98dae70429a96865266ba9f | |
| parent | 8455980b27a57e9c51693a4acbe91b820f4ab319 (diff) | |
| download | xv6-labs-e46fb46fcf4302bf5ed913101c5c7b510fe03ad4.tar.gz xv6-labs-e46fb46fcf4302bf5ed913101c5c7b510fe03ad4.tar.bz2 xv6-labs-e46fb46fcf4302bf5ed913101c5c7b510fe03ad4.zip | |
acquire+release ide_lock in ide_intr
| -rw-r--r-- | ide.c | 4 | 
1 files changed, 3 insertions, 1 deletions
| @@ -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 | 
