Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 76229
b: refs/heads/master
c: 868e672
h: refs/heads/master
i:
  76227: faf52e4
v: v3
  • Loading branch information
Bartlomiej Zolnierkiewicz committed Jan 25, 2008
1 parent 963e3f1 commit dae21c9
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 807e35d695690011faa1ce3ad67dfc23c1e39bdc
refs/heads/master: 868e672ac8db650dde695a5707a6caf5a757e7d9
8 changes: 5 additions & 3 deletions trunk/drivers/ide/ide-io.c
Original file line number Diff line number Diff line change
Expand Up @@ -374,7 +374,7 @@ void ide_end_drive_cmd (ide_drive_t *drive, u8 stat, u8 err)
tf->device = hwif->INB(IDE_SELECT_REG);
tf->status = stat;

if (drive->addressing == 1) {
if (args->tf_flags & IDE_TFLAG_LBA48) {
hwif->OUTB(drive->ctl|0x80, IDE_CONTROL_REG);
tf->hob_feature = hwif->INB(IDE_FEATURE_REG);
tf->hob_nsect = hwif->INB(IDE_NSECTOR_REG);
Expand Down Expand Up @@ -872,13 +872,15 @@ static ide_startstop_t execute_drive_cmd (ide_drive_t *drive,
}

task->tf_flags |= IDE_TFLAG_OUT_DEVICE;
if (drive->addressing == 1)
task->tf_flags |= IDE_TFLAG_LBA48;

if (task->tf_flags & IDE_TFLAG_FLAGGED)
return flagged_taskfile(drive, task);

task->tf_flags |= IDE_TFLAG_OUT_TF;
if (drive->addressing == 1)
task->tf_flags |= (IDE_TFLAG_LBA48 | IDE_TFLAG_OUT_HOB);
if (task->tf_flags & IDE_TFLAG_LBA48)
task->tf_flags |= IDE_TFLAG_OUT_HOB;

return do_rw_taskfile(drive, task);
}
Expand Down

0 comments on commit dae21c9

Please sign in to comment.