Fork us on GitHub Follow us on Facebook Follow us on Twitter

Changeset 74c0de0 in mainline


Ignore:
Timestamp:
2017-12-21T13:49:38Z (4 years ago)
Author:
Ondřej Hlavatý <aearsis@…>
Branches:
lfn, master
Children:
ff16da5f
Parents:
f543804
git-author:
Ondřej Hlavatý <aearsis@…> (2017-12-21 13:49:25)
git-committer:
Ondřej Hlavatý <aearsis@…> (2017-12-21 13:49:38)
Message:

xhci: add memory barrier to event ring

File:
1 edited

Legend:

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

    rf543804 r74c0de0  
    3232#include <as.h>
    3333#include <align.h>
     34#include <libarch/barrier.h>
    3435#include <usb/debug.h>
    3536#include "hw_struct/trb.h"
     
    328329        }
    329330
     331        /* Do not reorder the Cycle bit reading with memcpy */
     332        read_barrier();
     333
    330334        memcpy(event, ring->dequeue_trb, sizeof(xhci_trb_t));
    331335
Note: See TracChangeset for help on using the changeset viewer.