aboutsummaryrefslogtreecommitdiff
path: root/src/disk.c
diff options
context:
space:
mode:
authorKevin O'Connor <kevin@koconnor.net>2009-08-09 18:06:40 -0400
committerKevin O'Connor <kevin@koconnor.net>2009-08-09 18:06:40 -0400
commit9ae1e9b2c89912920a37d6e1593d4faa90a68e4b (patch)
treed83edcabc079275c5d480207942f9b1fa0c61785 /src/disk.c
parentb68ac71b00360dde1e8f8176985935dc43868858 (diff)
downloadseabios-hppa-9ae1e9b2c89912920a37d6e1593d4faa90a68e4b.zip
seabios-hppa-9ae1e9b2c89912920a37d6e1593d4faa90a68e4b.tar.gz
seabios-hppa-9ae1e9b2c89912920a37d6e1593d4faa90a68e4b.tar.bz2
Remove unused cdemu ATA code.
Remove the low-level ATA code for short reads on cdroms now that cd emulation is done at higher-level. Also, remove sector_count from ebda - ata code updates op->count now.
Diffstat (limited to 'src/disk.c')
-rw-r--r--src/disk.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/disk.c b/src/disk.c
index 441db5c..d4b80de 100644
--- a/src/disk.c
+++ b/src/disk.c
@@ -67,8 +67,7 @@ __send_disk_op(struct disk_op_s *op_far, u16 op_seg)
irq_disable();
// Update count with total sectors transferred.
- if (dop.command)
- SET_FARVAR(op_seg, op_far->count, GET_EBDA(sector_count));
+ SET_FARVAR(op_seg, op_far->count, dop.count);
if (status)
dprintf(1, "disk_op cmd %d error %d!\n", dop.command, status);