Changeset cd179c4 in rtems-libbsd


Ignore:
Timestamp:
11/25/14 11:53:42 (9 years ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
4.11, 5, 5-freebsd-12, 6-freebsd-12, freebsd-9.3, master
Children:
911f517
Parents:
8c3823e
git-author:
Sebastian Huber <sebastian.huber@…> (11/25/14 11:53:42)
git-committer:
Sebastian Huber <sebastian.huber@…> (01/21/15 14:00:20)
Message:

if_cgem: Add volatile to rx/tx desc rings

File:
1 edited

Legend:

Unmodified
Added
Removed
  • freebsd/sys/dev/cadence/if_cgem.c

    r8c3823e rcd179c4  
    124124
    125125        /* receive descriptor ring */
    126         struct cgem_rx_desc     *rxring;
     126        struct cgem_rx_desc volatile    *rxring;
    127127        bus_addr_t              rxring_physaddr;
    128128        struct mbuf             *rxring_m[CGEM_NUM_RX_DESCS];
     
    140140
    141141        /* transmit descriptor ring */
    142         struct cgem_tx_desc     *txring;
     142        struct cgem_tx_desc volatile    *txring;
    143143        bus_addr_t              txring_physaddr;
    144144        struct mbuf             *txring_m[CGEM_NUM_TX_DESCS];
     
    18051805                        sc->rxring_physaddr = 0;
    18061806                }
    1807                 bus_dmamem_free(sc->desc_dma_tag, sc->rxring,
     1807                bus_dmamem_free(sc->desc_dma_tag, __DEVOLATILE(void *, sc->rxring),
    18081808                                sc->rxring_dma_map);
    18091809                sc->rxring = NULL;
     
    18201820                        sc->txring_physaddr = 0;
    18211821                }
    1822                 bus_dmamem_free(sc->desc_dma_tag, sc->txring,
     1822                bus_dmamem_free(sc->desc_dma_tag, __DEVOLATILE(void *, sc->txring),
    18231823                                sc->txring_dma_map);
    18241824                sc->txring = NULL;
Note: See TracChangeset for help on using the changeset viewer.