Skip to content

Commit

Permalink
correct fetch pointer to HBA
Browse files Browse the repository at this point in the history
  • Loading branch information
jwhitehorn committed Nov 19, 2021
1 parent 4c35122 commit 842f1c1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion kernel/ahci.c
Expand Up @@ -49,7 +49,7 @@ void ahci_try_setup_device(uint16 bus, uint16 slot, uint16 func) {
void ahci_try_setup_known_device(char *dev_name, uint64 ahci_base_mem, uint16 bus, uint16 slot, uint16 func) {
cprintf("%s controller found (bus=%d, slot=%d, func=%d, abar=0x%x)\n", dev_name, bus, slot, func, ahci_base_mem);

HBA_MEM *ptr = (HBA_MEM *)&ahci_base_mem;
HBA_MEM *ptr = (HBA_MEM *)IO2V(ahci_base_mem);
cprintf(" HBA in ");
if(ptr->ghc == 0x0) {
cprintf("legacy mode\n");
Expand Down

0 comments on commit 842f1c1

Please sign in to comment.