diff options
| author | Frans Kaashoek <kaashoek@mit.edu> | 2017-01-31 17:47:16 -0500 |
|---|---|---|
| committer | Frans Kaashoek <kaashoek@mit.edu> | 2017-01-31 17:47:16 -0500 |
| commit | abf847a083888bbed4260ecacf849ea19f23e810 (patch) | |
| tree | 4ae9b3487bbfe27f6382486bf877917dbb8bc030 /ide.c | |
| parent | 59cdd6c63b89395d64ec9550181af5ed569b8466 (diff) | |
| download | xv6-labs-2022-abf847a083888bbed4260ecacf849ea19f23e810.tar.xz xv6-labs-2022-abf847a083888bbed4260ecacf849ea19f23e810.zip | |
Start of an experiment to remove the use of gs for cpu local variables.
Diffstat (limited to 'ide.c')
| -rw-r--r-- | ide.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -108,9 +108,9 @@ ideintr(void) // First queued buffer is the active request. acquire(&idelock); + if((b = idequeue) == 0){ release(&idelock); - // cprintf("spurious IDE interrupt\n"); return; } idequeue = b->qnext; @@ -164,5 +164,6 @@ iderw(struct buf *b) sleep(b, &idelock); } + release(&idelock); } |
