mirror of
https://github.com/Zeal-Operating-System/ZealOS.git
synced 2024-12-27 15:56:30 +00:00
Change AHCIPortIdentify cmd_fis desc set to debug approach, add another var check.
This commit is contained in:
parent
f813da6107
commit
7c6f6117d2
1 changed files with 8 additions and 1 deletions
|
@ -614,7 +614,14 @@ U0 AHCIPortIdentify(CBlkDev *bd)
|
||||||
cmd_fis = cmd_table->cmd_fis;
|
cmd_fis = cmd_table->cmd_fis;
|
||||||
|
|
||||||
cmd_fis->type = FISt_H2D;
|
cmd_fis->type = FISt_H2D;
|
||||||
Bts(&cmd_fis->desc, AHCI_CF_DESCf_C); //Set Command bit in H2D FIS.
|
// Bts(&cmd_fis->desc, AHCI_CF_DESCf_C); //Set Command bit in H2D FIS.
|
||||||
|
cmd_fis->desc |= AHCI_CF_DESCF_C; //set command bit in h2d fis with |= for debug
|
||||||
|
if (sys_boot_src.u16[0] == BOOT_SRC_DVD)
|
||||||
|
{
|
||||||
|
"AHCI: DEBUG: AHCIPortIdentify variable check 2\n";
|
||||||
|
"port->command: 0x%016X\n", port->command;
|
||||||
|
"cmd_fis->desc: 0x%016X\n", cmd_fis->desc;
|
||||||
|
}
|
||||||
|
|
||||||
if (port->signature == AHCI_PxSIG_ATAPI)
|
if (port->signature == AHCI_PxSIG_ATAPI)
|
||||||
cmd_fis->command = ATA_IDENTIFY_PACKET;
|
cmd_fis->command = ATA_IDENTIFY_PACKET;
|
||||||
|
|
Loading…
Reference in a new issue