Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions src/drivers/ata.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ void AdvancedTechnologyAttachment::Read28(common::uint32_t sectorNum, int count)
sectorCountPort.Write(1);
lbaLowPort.Write( sectorNum & 0x000000FF );
lbaMidPort.Write( (sectorNum & 0x0000FF00) >> 8);
lbaLowPort.Write( (sectorNum & 0x00FF0000) >> 16 );
lbaHiPort.Write( (sectorNum & 0x00FF0000) >> 16 );
commandPort.Write(0x20);

uint8_t status = commandPort.Read();
Expand Down Expand Up @@ -129,7 +129,7 @@ void AdvancedTechnologyAttachment::Write28(common::uint32_t sectorNum, common::u
sectorCountPort.Write(1);
lbaLowPort.Write( sectorNum & 0x000000FF );
lbaMidPort.Write( (sectorNum & 0x0000FF00) >> 8);
lbaLowPort.Write( (sectorNum & 0x00FF0000) >> 16 );
lbaHiPort.Write( (sectorNum & 0x00FF0000) >> 16 );
commandPort.Write(0x30);


Expand Down Expand Up @@ -172,4 +172,4 @@ void AdvancedTechnologyAttachment::Flush()
return;
}
}