@@ -33,36 +33,36 @@ rt_base_t level;
3333#if defined(__ICCARM__ )
3434/* transmit buffer */
3535#pragma location = TX_ADD_BASE
36- static uint8_t txBuffer [ETH_TXBUFNB ][ETH_TX_BUF_SIZE ];
36+ __no_init static rt_uint8_t txBuffer [ETH_TXBUFNB ][ETH_TX_BUF_SIZE ];
3737/* Receive buffer */
3838#pragma location = RX_ADD_BASE
39- static uint8_t rxBuffer [ETH_RXBUFNB ][ETH_RX_BUF_SIZE ];
39+ __no_init static rt_uint8_t rxBuffer [ETH_RXBUFNB ][ETH_RX_BUF_SIZE ];
4040/* Transmit DMA descriptors */
4141#pragma location = TX_DMA_ADD_BASE
42- static TxDmaDesc txDmaDesc [ETH_TXBUFNB ];
42+ __no_init static TxDmaDesc txDmaDesc [ETH_TXBUFNB ];
4343/* Receive DMA descriptors */
4444#pragma location = RX_DMA_ADD_BASE
45- static RxDmaDesc rxDmaDesc [ETH_RXBUFNB ];
45+ __no_init static RxDmaDesc rxDmaDesc [ETH_RXBUFNB ];
4646
4747#elif defined(__CC_ARM ) || defined(__CLANG_ARM )
4848/* transmit buffer */
49- static uint8_t txBuffer [ETH_TXBUFNB ][ETH_TX_BUF_SIZE ] __attribute__((at (TX_ADD_BASE )));
49+ static rt_uint8_t txBuffer [ETH_TXBUFNB ][ETH_TX_BUF_SIZE ] __attribute__((at (TX_ADD_BASE )));
5050/* Receive buffer */
51- static uint8_t rxBuffer [ETH_RXBUFNB ][ETH_RX_BUF_SIZE ] __attribute__((at (RX_ADD_BASE )));
51+ static rt_uint8_t rxBuffer [ETH_RXBUFNB ][ETH_RX_BUF_SIZE ] __attribute__((at (RX_ADD_BASE )));
5252/* Transmit DMA descriptors */
5353static TxDmaDesc txDmaDesc [ETH_TXBUFNB ] __attribute__((at (TX_DMA_ADD_BASE )));
5454/* Receive DMA descriptors */
5555static RxDmaDesc rxDmaDesc [ETH_RXBUFNB ] __attribute__((at (RX_DMA_ADD_BASE )));
5656
5757#elif defined ( __GNUC__ )
5858/* transmit buffer */
59- static uint8_t txBuffer [ETH_TXBUFNB ][ETH_TX_BUF_SIZE ] __attribute__((at ( TX_ADD_BASE )));
59+ static rt_uint8_t txBuffer [ETH_TXBUFNB ][ETH_TX_BUF_SIZE ] __attribute__((section ( ".TxArraySection" )));
6060/* Receive buffer */
61- static uint8_t rxBuffer [ETH_RXBUFNB ][ETH_RX_BUF_SIZE ] __attribute__((at ( RX_ADD_BASE )));
61+ static rt_uint8_t rxBuffer [ETH_RXBUFNB ][ETH_RX_BUF_SIZE ] __attribute__((section ( ".RxArraySection" )));
6262/* Transmit DMA descriptors */
63- static TxDmaDesc txDmaDesc [ETH_TXBUFNB ] __attribute__((at ( TX_DMA_ADD_BASE )));
63+ static TxDmaDesc txDmaDesc [ETH_TXBUFNB ] __attribute__((section ( ".TxDecripSection" )));
6464/* Receive DMA descriptors */
65- static RxDmaDesc rxDmaDesc [ETH_RXBUFNB ] __attribute__((at ( RX_DMA_ADD_BASE )));
65+ static RxDmaDesc rxDmaDesc [ETH_RXBUFNB ] __attribute__((section ( ".RxDecripSection" )));
6666#endif
6767
6868//Current transmit descriptor
0 commit comments