lwip: Added barriers for EmacPs adapater
This patch adds required barriers in the EmacPs adapter. Signed-off-by: Anirudha Sarangi <anirudh@xilinx.com> Acked-by: Harini Katakam <harinik@xilinx.com>
This commit is contained in:
parent
179719fb7c
commit
37fa380b82
2 changed files with 11 additions and 0 deletions
3
ThirdParty/sw_services/lwip141/src/ChangeLog
vendored
3
ThirdParty/sw_services/lwip141/src/ChangeLog
vendored
|
@ -1,5 +1,8 @@
|
|||
Change Log for lwip
|
||||
=================================
|
||||
2015-09-30
|
||||
* Created a new version lwip141_v1_3.
|
||||
* Made changes in xemacpsif_dma.c to add required barriers.
|
||||
2015-09-09
|
||||
* Fix compilation issues with the non hier axi eth design
|
||||
2015-09-04
|
||||
|
|
|
@ -286,6 +286,10 @@ XStatus emacps_sgsend(xemacpsif_s *xemacpsif, struct pbuf *p)
|
|||
txbd = XEmacPs_BdRingNext(txring, txbd);
|
||||
}
|
||||
XEmacPs_BdClearTxUsed(temp_txbd);
|
||||
#if defined (ARMR5) || defined (ARMA53)
|
||||
#else
|
||||
dsb();
|
||||
#endif
|
||||
|
||||
status = XEmacPs_BdRingToHw(txring, n_pbufs, txbdset);
|
||||
if (status != XST_SUCCESS) {
|
||||
|
@ -358,6 +362,10 @@ void setup_rx_bds(xemacpsif_s *xemacpsif, XEmacPs_BdRing *rxring)
|
|||
}
|
||||
temp++;
|
||||
*temp = 0;
|
||||
#if defined (ARMR5) || defined (ARMA53)
|
||||
#else
|
||||
dsb();
|
||||
#endif
|
||||
|
||||
XEmacPs_BdSetAddressRx(rxbd, (UINTPTR)p->payload);
|
||||
rx_pbufs_storage[index + bdindex] = (s32_t)p;
|
||||
|
|
Loading…
Add table
Reference in a new issue