diff options
| author | Amlal <amlal.elmahrouss@icloud.com> | 2025-01-29 09:15:17 +0100 |
|---|---|---|
| committer | Amlal <amlal.elmahrouss@icloud.com> | 2025-01-29 09:15:17 +0100 |
| commit | b6464d3fcd11ad43d1d0421fa8484eda2ac1708f (patch) | |
| tree | 7826279e593c837fa81a61f38e899213f8f55c03 /dev/Kernel/HALKit/AMD64 | |
| parent | 711dcbb464de6339a2dc5cd251f2096616d5ea09 (diff) | |
WiP: Tweaks and will finish SATA support and ATA (DMA) support.
Signed-off-by: Amlal <amlal.elmahrouss@icloud.com>
Diffstat (limited to 'dev/Kernel/HALKit/AMD64')
| -rw-r--r-- | dev/Kernel/HALKit/AMD64/Storage/ATA.cc | 6 |
1 files changed, 4 insertions, 2 deletions
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 |
