From f813da610701cf545ed3a7888df86abea3fa5d05 Mon Sep 17 00:00:00 2001 From: TomAwezome Date: Thu, 6 Oct 2022 18:18:13 -0400 Subject: [PATCH] Add debug AHCIPortIdentify PxCMD.ICC set to 1. --- src/Kernel/BlkDev/DiskAHCI.ZC | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/Kernel/BlkDev/DiskAHCI.ZC b/src/Kernel/BlkDev/DiskAHCI.ZC index 5b70d6ed..a73e12e8 100755 --- a/src/Kernel/BlkDev/DiskAHCI.ZC +++ b/src/Kernel/BlkDev/DiskAHCI.ZC @@ -593,6 +593,8 @@ U0 AHCIPortIdentify(CBlkDev *bd) port->interrupt_status = port->interrupt_status; //TODO: Why? + port->command |= 1 << 28; // set ICC to 1 (try cause HBA to transition Port to Active state) + //Using the code heap for this alloc to stay under 32-bit address space. dev_id_record = CAlloc(512, sys_task->code_heap);