This commit is contained in:
fslongjin
2022-04-07 16:12:23 +08:00
parent ecd9ba36b6
commit 68c7b52192
3 changed files with 5 additions and 2 deletions

View File

@ -37,6 +37,7 @@ void ahci_init()
ahci_devices[i].dev_struct = ahci_devs[i];
ahci_devices[i].hba_mem = (HBA_MEM *)(cal_HBA_MEM_VIRT_ADDR(i));
}
// todo: 支持多个ahci控制器。
ahci_port_base_vaddr = (uint64_t)kmalloc(1048576, 0);
ahci_probe_port(0);
port_rebase(&ahci_devices[0].hba_mem->ports[0], 0);