Ignore:
Timestamp:
Jul 4, 2008, 4:08:26 PM (12 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.10, 4.11, 4.9, master
Children:
c2bb3add
Parents:
06a23329
Message:

2008-07-04 Matthew Riek <matthew.riek@…>

  • Makefile.am, README, include/coverhd.h, network/network.c, startup/bspstart.c, startup/cfinit.c, startup/linkcmdsflash: Add cache support for 5329. Fix bug in network driver. Enable the cache in copyback and write-through so we can assume that in BSP.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • c/src/lib/libbsp/m68k/mcf5329/network/network.c

    r06a23329 r692e5ba  
    418418      int len = rxBd->length - sizeof(uint32_t);;
    419419
    420       /*
    421        * Invalidate the cache and push the packet up.
    422        * The cache is so small that it's more efficient to just
    423        * invalidate the whole thing unless the packet is very small.
    424        */
    425420      m = sc->rxMbuf[rxBdIndex];
    426       if (len < 128)
    427         rtems_cache_invalidate_multiple_data_lines(m->m_data, len);
    428       else
    429         rtems_cache_invalidate_entire_data();
     421
     422      rtems_cache_invalidate_multiple_data_lines(m->m_data, len);
     423
    430424      m->m_len = m->m_pkthdr.len = len - sizeof(struct ether_header);
    431425      eh = mtod(m, struct ether_header *);
     
    543537        sc->txRealign++;
    544538      }
     539
    545540      txBd->buffer = p;
    546541      txBd->length = m->m_len;
     542     
     543      rtems_cache_flush_multiple_data_lines(txBd->buffer, txBd->length);
     544     
    547545      sc->txMbuf[sc->txBdHead] = m;
    548546      nAdded++;
Note: See TracChangeset for help on using the changeset viewer.