Changeset 9c34735 in rtems-libbsd


Ignore:
Timestamp:
Sep 27, 2017, 7:38:28 AM (22 months ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
5283630d2c9d40deb0183696d278e02644fe4326, bc2ba9a9cdc7381c2a4f2ae6ee303be636f31368
Children:
1378632
Parents:
91a7527
git-author:
Sebastian Huber <sebastian.huber@…> (09/27/17 07:38:28)
git-committer:
Sebastian Huber <sebastian.huber@…> (09/27/17 09:02:06)
Message:

ffec: Use explicit cache synchronization

File:
1 edited

Legend:

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

    r91a7527 r9c34735  
    608608                return (ENOMEM);
    609609        }
     610#ifndef __rtems__
    610611        bus_dmamap_sync(sc->txbuf_tag, sc->txbuf_map[idx].map,
    611612            BUS_DMASYNC_PREWRITE);
     613#else /* __rtems__ */
     614        rtems_cache_flush_multiple_data_lines((void *)seg.ds_addr, seg.ds_len);
     615#endif /* __rtems__ */
    612616
    613617        sc->txbuf_map[idx].mbuf = m;
     
    772776        m = m_getcl(M_NOWAIT, MT_DATA, M_PKTHDR);
    773777        m->m_pkthdr.len = m->m_len = m->m_ext.ext_size;
     778#ifdef __rtems__
     779        rtems_cache_invalidate_multiple_data_lines(m->m_data, m->m_len);
     780#endif /* __rtems__ */
    774781
    775782        return (m);
Note: See TracChangeset for help on using the changeset viewer.