Ignore:
Timestamp:
Dec 13, 2016, 10:52:53 PM (9 years ago)
Author:
David Azarewicz
Message:

Moved dma buffer pointers.

File:
1 edited

Legend:

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

    r182 r183  
    635635
    636636      #ifdef DAZ_NEW_CODE
    637       ai->dma_buf[p] = MemAllocAlign(AHCI_PORT_PRIV_DMA_SZ, 1024);
    638       ai->dma_buf_phys[p] = MemPhysAdr(ai->dma_buf[p]);
     637      ai->ports[p].dma_buf = MemAlloc(AHCI_PORT_PRIV_DMA_SZ);
     638      ai->ports[p].dma_buf_phys = MemPhysAdr(ai->ports[p].dma_buf);
    639639      #endif
    640640
     
    671671      ai->port_map &= ~(1UL << p);
    672672      #ifdef DAZ_NEW_CODE
    673       if (ai->dma_buf[p]) MemFree(ai->dma_buf[p]);
    674       ai->dma_buf[p] = NULL;
     673      if (ai->ports[p].dma_buf) MemFree(ai->ports[p].dma_buf);
     674      ai->ports[p].dma_buf = NULL;
    675675      #endif
    676676    }
Note: See TracChangeset for help on using the changeset viewer.