mirror of
https://github.com/Zeal-Operating-System/ZealOS.git
synced 2024-12-26 07:20:32 +00:00
Change AHCIAtaInit cmd_header_base cast to proper declared variable.
This commit is contained in:
parent
7dac5c3019
commit
8f93766df7
1 changed files with 4 additions and 2 deletions
|
@ -593,7 +593,7 @@ U0 AHCIPortIdentify(CBlkDev *bd)
|
|||
port->device_sleep = 0; // clear device sleep bits for debug sake
|
||||
debug_val1 = 0;
|
||||
debug_val1 |= 1 << cmd_slot;
|
||||
debug_val2 = Bt(&debug_val1, cmd_slot);
|
||||
debug_val2 = Bt(&debug_val1, cmd_slot);
|
||||
if (sys_boot_src.u16[0] == BOOT_SRC_DVD)
|
||||
{
|
||||
"AHCI: DEBUG: AHCIPortIdentify variable check 1\n";
|
||||
|
@ -1097,6 +1097,7 @@ Bool AHCIAtaInit(CBlkDev *bd)
|
|||
{
|
||||
Bool unlock, okay = FALSE;
|
||||
CPortCmdHeader *cmd_header;
|
||||
CPortCmdHeader *cmd_header_base;
|
||||
I64 i;
|
||||
|
||||
if (!bd->ahci_port)
|
||||
|
@ -1109,7 +1110,8 @@ Bool AHCIAtaInit(CBlkDev *bd)
|
|||
{
|
||||
for (i = 0; i < blkdev.cmd_slot_count; i++)
|
||||
{
|
||||
cmd_header = &bd->ahci_port->cmd_list_base(CPortCmdHeader *)[i];
|
||||
cmd_header_base = bd->ahci_port->cmd_list_base;
|
||||
cmd_header = &cmd_header_base[i];
|
||||
Free(cmd_header->cmd_table_base);
|
||||
}
|
||||
Free(bd->ahci_port->cmd_list_base);
|
||||
|
|
Loading…
Reference in a new issue