Changeset c1dcd6af in rtems


Ignore:
Timestamp:
Jan 21, 2019, 10:27:07 AM (4 months ago)
Author:
Jiri Gaisler <jiri@…>
Branches:
master
Children:
d3d4e77
Parents:
9b2b389
git-author:
Jiri Gaisler <jiri@…> (01/21/19 10:27:07)
git-committer:
Sebastian Huber <sebastian.huber@…> (01/22/19 11:50:09)
Message:

grlib: make memory coherency cpu-independent

Update #3678.

Location:
bsps
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • bsps/include/grlib/grlib_impl.h

    r9b2b389 rc1dcd6af  
    122122        return tmp;
    123123}
     124
     125#define GRLIB_DMA_IS_CACHE_COHERENT CPU_SPARC_HAS_SNOOPING
     126
    124127#else
    125128
     
    141144}
    142145
     146#define GRLIB_DMA_IS_CACHE_COHERENT 1
     147
    143148#endif
    144149
  • bsps/shared/grlib/spw/grspw.c

    r9b2b389 rc1dcd6af  
    18941894                        rxlen = c;
    18951895                }
    1896                 if (CPU_SPARC_HAS_SNOOPING) {
     1896                if (GRLIB_DMA_IS_CACHE_COHERENT) {
    18971897/*              if ( 1 ) {*/
    18981898                        /*printf("RX_MEMCPY(0x%x, 0x%x, 0x%x)\n", (unsigned int)b, (unsigned int)(rxb+pDev->rxbufcur), (unsigned int)rxlen);*/
Note: See TracChangeset for help on using the changeset viewer.