From 0cbbe5a74b084beff633351b377869071f2af33f Mon Sep 17 00:00:00 2001 From: TomAwezome Date: Thu, 6 Oct 2022 18:16:56 -0400 Subject: [PATCH] Add debug AHCIPortIdentify device_sleep clear and another var check. --- src/Kernel/BlkDev/DiskAHCI.ZC | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/src/Kernel/BlkDev/DiskAHCI.ZC b/src/Kernel/BlkDev/DiskAHCI.ZC index 3b3aa133..160a8290 100755 --- a/src/Kernel/BlkDev/DiskAHCI.ZC +++ b/src/Kernel/BlkDev/DiskAHCI.ZC @@ -574,6 +574,17 @@ U0 AHCIPortIdentify(CBlkDev *bd) CPortCmdHeader *cmd_header = AHCIPortActiveHeaderGet(bd->port_num, cmd_slot); U16 *dev_id_record; + if (sys_boot_src.u16[0] == BOOT_SRC_DVD) + { + "AHCI: DEBUG: AHCIPortIdentify variable check 0\n"; + "port->command: 0x%016X\n", port->command; + "cmd_header->desc: 0x%016X\n", cmd_header->desc; + "port->cmd_issue: 0x%016X\n", port->cmd_issue; + "port->device_sleep: 0x%016X\n", port->device_sleep; + "port->fis_switch_ctrl: 0x%016X\n", port->fis_switch_ctrl; + } + + port->device_sleep = 0; // clear device sleep bits for debug sake if (sys_boot_src.u16[0] == BOOT_SRC_DVD) { "AHCI: DEBUG: AHCIPortIdentify variable check 1\n";