Changeset 8846bbd in rtems


Ignore:
Timestamp:
Apr 28, 1999, 1:59:11 PM (21 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.10, 4.11, 4.8, 4.9, master
Children:
f779efc
Parents:
cfcb5a2
Message:

Patch from Emmanuel Raguet <raguet@…>:

I have made test with the Dec21140 driver and it appears that all
works fine even if the cache is enabled for the memory space in
which the incoming and outcoming Ethernet frames are stored.

I have had #ifdef to "comment" the code. If you want to disable
cache, you only have to #define the name. It could be mandatory
for some BSPs.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • c/src/lib/libbsp/i386/pc386/dec21140/dec21140.c

    rcfcb5a2 r8846bbd  
    407407  cp = (char *)malloc((NRXBUFS+NTXBUFS)*(sizeof(struct MD)+ RBUF_SIZE) + PG_SIZE);
    408408  sc->bufferBase = cp;
    409   cp += (PG_SIZE - (int)cp) & MASK_OFFSET ;
     409  cp += (PG_SIZE - (int)cp) & MASK_OFFSET;
     410#ifdef PCI_BRIDGE_DOES_NOT_ENSURE_CACHE_COHERENCY_FOR_DMA
    410411  if (_CPU_is_paging_enabled())
    411412    _CPU_change_memory_mapping_attribute
     
    413414                    (NRXBUFS+NTXBUFS)*(sizeof(struct MD)+ RBUF_SIZE),
    414415                    PTE_CACHE_DISABLE | PTE_WRITABLE);
     416#endif
    415417  rmd = (struct MD*)cp;
    416418  sc->MDbase = rmd;
Note: See TracChangeset for help on using the changeset viewer.