From b4416e94d6c727c84984bfdfeac41bb4e99c3d4f Mon Sep 17 00:00:00 2001 From: Celian RAIMBAULT Date: Sun, 22 Mar 2020 11:45:38 +0100 Subject: [PATCH] Changed low port to high port in ata/read --- src/drivers/ata.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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();