use RCCE_barrier instead of a "sleep workaround"

This commit is contained in:
Stefan Lankes 2011-08-27 05:23:18 -07:00
parent 7e3c06f47b
commit 7b9f890c66

View file

@ -464,6 +464,8 @@ err_t rckemacif_init(struct netif* netif)
int subdest;
int route;
LWIP_DEBUGF(NETIF_DEBUG, ("Initialize eMAC device...\n"));
LWIP_ASSERT("netif != NULL", (netif != NULL));
// Find out who I am...
@ -639,7 +641,7 @@ err_t rckemacif_init(struct netif* netif)
LWIP_DEBUGF(NETIF_DEBUG, (" ADD_FILTER_MOD set: %x\n", add_filter_mod));
}
sleep(3);
RCCE_barrier(&RCCE_COMM_WORLD);
/* Start address */
LWIP_DEBUGF(NETIF_DEBUG, (" RX Buffer %p (%lx phys)\n", rckemacif->rx_buffer, virt_to_phys((uint32_t)rckemacif->rx_buffer)));