Ignore:
Timestamp:
Sep 5, 2014, 7:12:34 AM (7 years ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
4.11, 5, master
Children:
8dab980
Parents:
a72f16e
git-author:
Sebastian Huber <sebastian.huber@…> (09/05/14 07:12:34)
git-committer:
Sebastian Huber <sebastian.huber@…> (09/08/14 05:53:02)
Message:

libchip/dwmac: Use RTEMS_DEVOLATILE()

File:
1 edited

Legend:

Unmodified
Added
Removed
  • c/src/libchip/network/dwmac-desc-enh.c

    ra72f16e rddf8d12  
    716716
    717717  if ( dma_rx != NULL ) {
    718     eno          = self->CFG->CALLBACK.mem_free_nocache( self->arg, dma_rx );
     718    eno = self->CFG->CALLBACK.mem_free_nocache(
     719      self->arg,
     720      RTEMS_DEVOLATILE( void *, dma_rx )
     721    );
    719722    self->dma_rx = NULL;
    720723  }
     
    742745      MFREE( self->mbuf_addr_rx[i], dummy );
    743746      (void) dummy;
    744       memset(&p_enh[i].erx, 0, sizeof( dwmac_desc_ext ) );
     747      memset(
     748        RTEMS_DEVOLATILE( void *, &p_enh[i].erx ),
     749        0,
     750        sizeof( dwmac_desc_ext )
     751      );
    745752    }
    746753  }
     
    812819{
    813820  int   eno      = 0;
    814   void *mem_desc = __DEVOLATILE( void *, self->dma_tx );
     821  void *mem_desc = RTEMS_DEVOLATILE( void *, self->dma_tx );
    815822
    816823
     
    848855      MFREE( self->mbuf_addr_tx[i], dummy );
    849856      (void) dummy;
    850       memset( __DEVOLATILE( void *,
     857      memset( RTEMS_DEVOLATILE( void *,
    851858                            &p_enh[i].etx ), 0, sizeof( dwmac_desc_ext ) );
    852859    }
Note: See TracChangeset for help on using the changeset viewer.