Changeset 001b152 in mainline for uspace/drv/uhci-hcd/transfer_list.c


Ignore:
Timestamp:
2011-03-23T23:04:22Z (13 years ago)
Author:
Jan Vesely <jano.vesely@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
30718cc2
Parents:
05ead5c
Message:

Use simple slab allocator for hw accessible memory

File:
1 edited

Legend:

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

    r05ead5c r001b152  
    5858        }
    5959        instance->queue_head_pa = addr_to_phys(instance->queue_head);
     60        usb_log_debug2("Transfer list %s setup with QH: %p(%p).\n",
     61            name, instance->queue_head, instance->queue_head_pa);
    6062
    6163        qh_init(instance->queue_head);
     
    118120        qh_set_next_qh(last_qh, pa);
    119121
     122        asm volatile ("": : :"memory");
     123//      asm volatile("clflush (%0)": : "r"(last_qh));
     124
    120125        /* Add to the driver list */
    121126        list_append(&batch->link, &instance->batch_list);
     
    159164        fibril_mutex_unlock(&instance->guard);
    160165
     166        async_usleep(1000);
    161167        while (!list_empty(&done)) {
    162168                link_t *item = done.next;
     
    212218                    == addr_to_phys(batch_qh(batch)));
    213219                instance->queue_head->next = batch_qh(batch)->next;
     220//              asm volatile("clflush (%0)" : : "r"(instance->queue_head));
    214221                qpos = "FIRST";
    215222        } else {
     
    220227                    == addr_to_phys(batch_qh(batch)));
    221228                batch_qh(prev)->next = batch_qh(batch)->next;
     229//              asm volatile("clflush (%0)" : : "r"(batch_qh(prev)));
    222230                qpos = "NOT FIRST";
    223231        }
     232        asm volatile ("": : :"memory");
    224233        /* Remove from the batch list */
    225234        list_remove(&batch->link);
Note: See TracChangeset for help on using the changeset viewer.