mirror of
https://github.com/Zeal-Operating-System/ZealOS.git
synced 2024-12-26 07:20:32 +00:00
Add debug AHCIPortIdentify device_sleep clear and another var check.
This commit is contained in:
parent
896239cd77
commit
0cbbe5a74b
1 changed files with 11 additions and 0 deletions
|
@ -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";
|
||||
|
|
Loading…
Reference in a new issue