disk_1_present = ide_probe_disk1();
}
-// Interrupt handler - wake up the request that just finished.
-void
-ide_intr(void)
-{
- acquire(&ide_lock);
- wakeup(&request[tail]);
- release(&ide_lock);
-}
-
// Probe to see if disk 1 exists (we assume disk 0 exists).
static int
ide_probe_disk1(void)
return x < 1000;
}
+// Interrupt handler - wake up the request that just finished.
+void
+ide_intr(void)
+{
+ acquire(&ide_lock);
+ wakeup(&request[tail]);
+ release(&ide_lock);
+}
+
// Start the next request in the queue.
static void
ide_start_request (void)