Add debug AHCIPortIdentify device_sleep clear and another var check.

This commit is contained in:
TomAwezome 2022-10-06 18:16:56 -04:00
parent 896239cd77
commit 0cbbe5a74b

View file

@ -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";