From 7ceadad6f8d24e98098a00531b24fa2c89fb76ad Mon Sep 17 00:00:00 2001 From: Amlal El Mahrouss Date: Thu, 1 Feb 2024 22:35:23 +0100 Subject: Bootloader: Fix Warning in ATA.cxx Signed-off-by: Amlal El Mahrouss --- Private/NewBoot/Source/HEL/AMD64/ATA.cxx | 4 ++-- 1 file 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) -- cgit v1.2.3