提交 50f88503 创建 作者: rsc's avatar rsc

move ide_intr lower

上级 41948359
...@@ -64,15 +64,6 @@ ide_init(void) ...@@ -64,15 +64,6 @@ ide_init(void)
disk_1_present = ide_probe_disk1(); 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). // Probe to see if disk 1 exists (we assume disk 0 exists).
static int static int
ide_probe_disk1(void) ide_probe_disk1(void)
...@@ -95,6 +86,15 @@ ide_probe_disk1(void) ...@@ -95,6 +86,15 @@ ide_probe_disk1(void)
return x < 1000; 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. // Start the next request in the queue.
static void static void
ide_start_request (void) ide_start_request (void)
......
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论