Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/drv/uhci-hcd/transfer_list.c

    rd736fe38 r4125b7d  
    3434#include <errno.h>
    3535#include <usb/debug.h>
    36 #include <arch/barrier.h>
    3736
    3837#include "transfer_list.h"
     
    7271 * @param[in] instance Memory place to use.
    7372 *
    74  * Frees memory of the internal qh_t structure.
     73 * Frees memory for internal qh_t structure.
    7574 */
    7675void transfer_list_fini(transfer_list_t *instance)
     
    127126        assert((pa & LINK_POINTER_ADDRESS_MASK) == pa);
    128127
    129         /* Make sure all data in the batch are written */
    130         write_barrier();
    131 
    132128        /* keep link */
    133129        batch_qh(batch)->next = last_qh->next;
    134130        qh_set_next_qh(last_qh, batch_qh(batch));
    135131
    136         /* Make sure the pointer is updated */
    137         write_barrier();
     132        asm volatile ("": : :"memory");
    138133
    139134        /* Add to the driver list */
     
    227222            == addr_to_phys(batch_qh(batch)));
    228223        prev_qh->next = batch_qh(batch)->next;
    229 
    230         /* Make sure the pointer is updated */
    231         write_barrier();
    232 
     224        asm volatile ("": : :"memory");
    233225        /* Remove from the batch list */
    234226        list_remove(&batch->link);
Note: See TracChangeset for help on using the changeset viewer.