Changeset 73e5b62 in mainline for uspace/drv/bus/usb/xhci/scratchpad.c


Ignore:
Timestamp:
2017-07-31T19:58:08Z (7 years ago)
Author:
Jaroslav Jindrak <dzejrou@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
7428b92
Parents:
c9bec1c
Message:

DCBAA now correctly holds physical addresses of the device contexts, a secondary array called dcbaa_virt was added that is used for deallocation.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/drv/bus/usb/xhci/scratchpad.c

    rc9bec1c r73e5b62  
    9292        bufs->phys_bck = (uint64_t) phys_array;
    9393
    94         hc->dcbaa[0] = (xhci_device_ctx_t *) bufs->phys_ptr;
     94        hc->dcbaa[0] = bufs->phys_ptr;
    9595        hc->scratchpad = bufs;
    9696
     
    131131        free32((void *) scratchpad->phys_bck);
    132132
    133         hc->dcbaa[0] = NULL;
     133        hc->dcbaa[0] = 0;
     134        hc->dcbaa_virt[0] = NULL;
    134135        return;
    135136}
Note: See TracChangeset for help on using the changeset viewer.