summaryrefslogtreecommitdiffhomepage
path: root/dev/Kernel/HALKit/AMD64
diff options
context:
space:
mode:
authorAmlal El Mahrouss <amlal.elmahrouss@icloud.com>2025-03-12 05:48:40 +0100
committerAmlal El Mahrouss <amlal.elmahrouss@icloud.com>2025-03-12 05:48:40 +0100
commitc24971c61795971982ccc12e7dfc59ec6326e77f (patch)
treec9e17cde063249630e89e6e2f4a984971394385b /dev/Kernel/HALKit/AMD64
parent5f1939a987a776f25abd971ebd2366f1a1c481f2 (diff)
AHCI.cc: Don't panic when disk fails (AHCI)
Diffstat (limited to 'dev/Kernel/HALKit/AMD64')
-rw-r--r--dev/Kernel/HALKit/AMD64/Storage/AHCI.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/dev/Kernel/HALKit/AMD64/Storage/AHCI.cc b/dev/Kernel/HALKit/AMD64/Storage/AHCI.cc
index e33f7126..6b115eef 100644
--- a/dev/Kernel/HALKit/AMD64/Storage/AHCI.cc
+++ b/dev/Kernel/HALKit/AMD64/Storage/AHCI.cc
@@ -188,7 +188,8 @@ STATIC Void drv_std_input_output(UInt64 lba, UInt8* buffer, SizeT sector_sz, Siz
// Check IS again.
if (kSATAHba->Is & kHBAErrTaskFile)
{
- ke_panic(RUNTIME_CHECK_BAD_BEHAVIOR, "AHCI Read disk failure, faulty component.");
+ err_global_get() = kErrorDiskIsCorrupted;
+ return;
}
}