Ignore:
Timestamp:
Dec 20, 2016, 9:35:27 PM (9 years ago)
Author:
David Azarewicz
Message:

Fix for sparse port hardware

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/os2ahci/pci.c

    r184 r185  
    631631  #ifndef DAZ_NEW_CODE
    632632  /* fill in DMA scratch buffer addresses in adapter info */
    633   for (i = 0; i < ad_info->hw_ports; i++)
    634   {
     633  for (i = 0; i < AHCI_MAX_PORTS; i++)
     634  {
     635    if (!(ad_info->port_map & (1UL << i))) continue;
     636
    635637    ad_info->ports[i].dma_buf = MemAllocAlign(AHCI_PORT_PRIV_DMA_SZ, 1024);
    636638    ad_info->ports[i].dma_buf_phys = MemPhysAdr(ad_info->ports[i].dma_buf);
Note: See TracChangeset for help on using the changeset viewer.