mem: improve device memory mapping
MMIO ports will no longer directly map to HHDM addresses and will need to be searched for in the memory mapping tree
This commit is contained in:
parent
24e2610a6b
commit
4dc4f07dc6
10 changed files with 111 additions and 16 deletions
|
|
@ -269,7 +269,9 @@ void ahci_init()
|
|||
kprintf(LOG_WARN "No SATA controllers found\n");
|
||||
return;
|
||||
}
|
||||
abar = (hbamem_t *)((uintptr_t)dev->bar5 | hhdm_start);
|
||||
|
||||
abar = (hbamem_t *)((uintptr_t)dev->bar5);
|
||||
abar = kmap_device((void *)abar, sizeof(hbamem_t));
|
||||
|
||||
if (!(abar->ghc & (1 << 31))) {
|
||||
kprintf(LOG_WARN "AHCI controller not enabled\n");
|
||||
|
|
|
|||
Loading…
Reference in a new issue