diff --git a/src/drivers/ata.cpp b/src/drivers/ata.cpp index 48f07e4..98f6b3e 100644 --- a/src/drivers/ata.cpp +++ b/src/drivers/ata.cpp @@ -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();