Changeset 183 for trunk/src/os2ahci/ahci.c
- Timestamp:
- Dec 13, 2016, 10:52:53 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/os2ahci/ahci.c
r182 r183 635 635 636 636 #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); 639 639 #endif 640 640 … … 671 671 ai->port_map &= ~(1UL << p); 672 672 #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; 675 675 #endif 676 676 }
Note:
See TracChangeset
for help on using the changeset viewer.