Changeset 293de44 in mainline for uspace/drv/uhci-hcd/transfer_list.c
- Timestamp:
- 2011-05-20T11:18:53Z (14 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- c7c2443
- Parents:
- 160b75e (diff), 7941bd6 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)
links above to see all the changes relative to each parent. - File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/uhci-hcd/transfer_list.c
r160b75e r293de44 34 34 #include <errno.h> 35 35 #include <usb/debug.h> 36 #include <arch/barrier.h> 36 37 37 38 #include "transfer_list.h" … … 71 72 * @param[in] instance Memory place to use. 72 73 * 73 * Frees memory forinternal qh_t structure.74 * Frees memory of the internal qh_t structure. 74 75 */ 75 76 void transfer_list_fini(transfer_list_t *instance) … … 126 127 assert((pa & LINK_POINTER_ADDRESS_MASK) == pa); 127 128 129 /* Make sure all data in the batch are written */ 130 write_barrier(); 131 128 132 /* keep link */ 129 133 batch_qh(batch)->next = last_qh->next; 130 134 qh_set_next_qh(last_qh, batch_qh(batch)); 131 135 132 asm volatile ("": : :"memory"); 136 /* Make sure the pointer is updated */ 137 write_barrier(); 133 138 134 139 /* Add to the driver list */ … … 222 227 == addr_to_phys(batch_qh(batch))); 223 228 prev_qh->next = batch_qh(batch)->next; 224 asm volatile ("": : :"memory"); 229 230 /* Make sure the pointer is updated */ 231 write_barrier(); 232 225 233 /* Remove from the batch list */ 226 234 list_remove(&batch->link);
Note:
See TracChangeset
for help on using the changeset viewer.