Changeset a70edfc in rtems-libbsd


Ignore:
Timestamp:
Sep 27, 2017, 7:37:38 AM (19 months ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
647dd08ae2aa69b935c2847ea450fb824322ecae, c6261f97870562d4c797cfb1ff1ba0affb85a916
Children:
d18c643
Parents:
7f7a339
git-author:
Sebastian Huber <sebastian.huber@…> (09/27/17 07:37:38)
git-committer:
Sebastian Huber <sebastian.huber@…> (09/27/17 09:02:07)
Message:

ffec: Add wmb() to descriptor updates

File:
1 edited

Legend:

Unmodified
Added
Removed
  • freebsd/sys/dev/ffec/if_ffec.c

    r7f7a339 ra70edfc  
    594594         */
    595595        sc->txdesc_ring[idx].buf_paddr = (uint32_t)paddr;
     596        wmb();
    596597        sc->txdesc_ring[idx].flags_len = flags | len; /* Must be set last! */
    597598
     
    740741        nidx = next_rxidx(sc, idx);
    741742        sc->rxdesc_ring[idx].buf_paddr = (uint32_t)paddr;
     743        wmb();
    742744        sc->rxdesc_ring[idx].flags_len = FEC_RXDESC_EMPTY |
    743745                ((nidx == 0) ? FEC_RXDESC_WRAP : 0);
Note: See TracChangeset for help on using the changeset viewer.