Changeset 9c34735 in rtems-libbsd


Ignore:
Timestamp:
Sep 27, 2017, 7:38:28 AM (3 years ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
b96abfd647154f10ea8f7fac68e25676636eded5, 13421d06177df03916665bb2f3a7fcadc51a951b, d964a6703c705cc92fd053bcefc08bb3b6baa0e2, b1e67a2bdc575f7f6e0af4922d7adb91545827ca
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.