Ignore:
Timestamp:
Dec 23, 2010, 11:06:03 PM (15 years ago)
Author:
chris
Message:
  • Added code to dprintf TF_DATA register in restart_ctxhook
  • Cleaned up aws_free() calls; in a nutshell, aws_free() will always be called when IORBs complete (successfully or with an error) and this is now verified; redundant invocations of aws_free() have been removed.
  • atapi_req_sense_pp() now sets the iorb_workspace(iorb)->complete = 1
File:
1 edited

Legend:

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

    r57 r66  
    235235  if (ai->pci->vendor == PCI_VENDOR_ID_JMICRON &&
    236236      ai->pci->device == 0x2361 && ai->port_map != 1) {
    237     dprintf("JMB361 has only one port, port_map 0x%x -> 0x%x\n", ai->port_map, 1);
     237    dprintf("JMB361 has only one port, port_map 0x%lx -> 0x%lx\n", ai->port_map, 1);
    238238    ai->port_map = 1;
    239239  }
     
    10291029
    10301030  if (add_workspace(iorb)->complete | (iorb->Status | IORB_ERROR)) {
    1031     aws_free(add_workspace(iorb));
    10321031    iorb_done(iorb);
    10331032  }
     
    12301229
    12311230      if (aws->complete) {
    1232         /* this IORB is complete */
    1233         aws_free(aws);
    1234 
    1235         /* move IORB to our temporary done queue */
     1231        /* this IORB is complete; move IORB to our temporary done queue */
    12361232        iorb_queue_del(&ai->ports[p].iorb_queue, iorb);
    12371233        iorb_queue_add(&done_queue, iorb);
     
    12501246    next = iorb->pNxtIORB;
    12511247    iorb->Status = IORB_DONE;
     1248    aws_free(iorb_workspace(iorb));
    12521249    if (iorb->RequestControl & IORB_ASYNC_POST) {
    12531250      iorb->NotifyAddress(iorb);
Note: See TracChangeset for help on using the changeset viewer.