summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorAmlal El Mahrouss <amlalelmahrouss@icloud.com>2024-02-01 22:35:23 +0100
committerAmlal El Mahrouss <amlalelmahrouss@icloud.com>2024-02-01 22:35:33 +0100
commit7ceadad6f8d24e98098a00531b24fa2c89fb76ad (patch)
tree763cc89e1b37f6b7aeea3ac7d291b525a121982e
parent025593a068bc83f64386325b826179cafd95a03f (diff)
Bootloader: Fix Warning in ATA.cxx
Signed-off-by: Amlal El Mahrouss <amlalelmahrouss@icloud.com>
-rw-r--r--Private/NewBoot/Source/HEL/AMD64/ATA.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/Private/NewBoot/Source/HEL/AMD64/ATA.cxx b/Private/NewBoot/Source/HEL/AMD64/ATA.cxx
index 6d3635bc..0f8d9170 100644
--- a/Private/NewBoot/Source/HEL/AMD64/ATA.cxx
+++ b/Private/NewBoot/Source/HEL/AMD64/ATA.cxx
@@ -52,8 +52,8 @@ Boolean ATAInitDriver(UInt8 Bus, UInt8 Drive, UInt16& OutBus,
OutBus = (Bus == ATA_PRIMARY) ? BATADevice::kPrimary : BATADevice::kSecondary;
OutMaster = (Bus == ATA_PRIMARY);
- char cl = in8(Bus + ATA_CYL_LOW); /* get the "signature bytes" */
- char ch = in8(Bus + ATA_CYL_HIGH);
+ unsigned cl = in16(Bus + ATA_CYL_LOW); /* get the "signature bytes" */
+ unsigned ch = in16(Bus + ATA_CYL_HIGH);
/* differentiate ATA, ATAPI, SATA and SATAPI */
if (cl == 0x14 && ch == 0xEB)