forked from ROMEO/obsw
xilinx eth in own folder. found another bug/challenge with dma
This commit is contained in:
@ -538,6 +538,7 @@ void emacps_recv_handler(void *arg)
|
||||
}
|
||||
|
||||
for (k = 0, curbdptr=rxbdset; k < bd_processed; k++) {
|
||||
// outbyte('r');
|
||||
|
||||
bdindex = XEMACPS_BD_TO_INDEX(rxring, curbdptr);
|
||||
p = (struct pbuf *)rx_pbufs_storage[index + bdindex];
|
||||
@ -552,6 +553,8 @@ void emacps_recv_handler(void *arg)
|
||||
#endif
|
||||
pbuf_realloc(p, rx_bytes);
|
||||
|
||||
// xil_printf("reading bd index %i bdindex %i p %p payload %p len %i\n", index, bdindex, p, p->payload, p->len);
|
||||
|
||||
/* Invalidate RX frame before queuing to handle
|
||||
* L1 cache prefetch conditions on any architecture.
|
||||
*/
|
||||
@ -775,6 +778,8 @@ XStatus init_dma(struct xemac_s *xemac)
|
||||
#endif
|
||||
XEmacPs_BdSetAddressRx(rxbd, (UINTPTR)p->payload);
|
||||
|
||||
xil_printf("setting bd index %i bdindex %i p %p payload %p\n", index, bdindex, p, p->payload);
|
||||
|
||||
rx_pbufs_storage[index + bdindex] = (UINTPTR)p;
|
||||
}
|
||||
XEmacPs_SetQueuePtr(&(xemacpsif->emacps), xemacpsif->emacps.RxBdRing.BaseBdAddr, 0, XEMACPS_RECV);
|
||||
|
Reference in New Issue
Block a user