diff options
author | rsc <rsc> | 2006-09-08 14:33:27 +0000 |
---|---|---|
committer | rsc <rsc> | 2006-09-08 14:33:27 +0000 |
commit | 50f88503664aae07e22e3ed2575853e396f909b5 (patch) | |
tree | 4afe6903dcc69b0c4cfe2d409b8fe0a6529f72c1 /ide.c | |
parent | 4194835901c7151630c22ae7cd8fbba7d3b736ab (diff) | |
download | xv6-labs-50f88503664aae07e22e3ed2575853e396f909b5.tar.gz xv6-labs-50f88503664aae07e22e3ed2575853e396f909b5.tar.bz2 xv6-labs-50f88503664aae07e22e3ed2575853e396f909b5.zip |
move ide_intr lower
Diffstat (limited to 'ide.c')
-rw-r--r-- | ide.c | 18 |
1 files changed, 9 insertions, 9 deletions
@@ -64,15 +64,6 @@ ide_init(void) 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) @@ -95,6 +86,15 @@ 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) |