From b6464d3fcd11ad43d1d0421fa8484eda2ac1708f Mon Sep 17 00:00:00 2001 From: Amlal Date: Wed, 29 Jan 2025 09:15:17 +0100 Subject: WiP: Tweaks and will finish SATA support and ATA (DMA) support. Signed-off-by: Amlal --- dev/Kernel/HALKit/AMD64/Storage/ATA.cc | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'dev/Kernel/HALKit') diff --git a/dev/Kernel/HALKit/AMD64/Storage/ATA.cc b/dev/Kernel/HALKit/AMD64/Storage/ATA.cc index a3e8f4ab..aea1846d 100644 --- a/dev/Kernel/HALKit/AMD64/Storage/ATA.cc +++ b/dev/Kernel/HALKit/AMD64/Storage/ATA.cc @@ -105,8 +105,10 @@ Boolean drv_std_init(UInt16 Bus, UInt8 Drive, UInt16& OutBus, UInt8& OutMaster) // Step 7: Check if the drive supports DMA if (!(kATAData[63] & (1 << 8)) || !(kATAData[88] & 0xFF)) { - kcout << "No DMA support, falling back to PIO...\r"; - return false; // Or switch to PIO mode if needed + kcout << "No DMA support...\r"; + ke_panic(RUNTIME_CHECK_FAILED, "No DMA support on necessry disk driver."); + + return false; } // Step 8: Enable DMA Mode -- cgit v1.2.3