diff --git a/drivers/net/mmnif.c b/drivers/net/mmnif.c index c2c09fa2..bf647a64 100644 --- a/drivers/net/mmnif.c +++ b/drivers/net/mmnif.c @@ -757,7 +757,7 @@ err_t mmnif_tx(struct netif* netif, struct pbuf* p) mmnif_write_rx_pending(dest_ip,pending); /* and unlock the dest_ip mm_rx_buffer_hdr */ -// mmnif_unlock_rx_hdr(dest_ip); + mmnif_unlock_rx_hdr(dest_ip); /* check if there is a space in the queue without overwriting another packet */ if ((queued + pending) > MMNIF_RX_QUEUELEN) @@ -778,7 +778,7 @@ err_t mmnif_tx(struct netif* netif, struct pbuf* p) mmnif_write_rx_buffl(dest_ip, pos, p->payload,p->tot_len); /* like above ensure we are the only ones editing the hdr */ -// mmnif_lock_rx_hdr(dest_ip); + mmnif_lock_rx_hdr(dest_ip); queued = mmnif_read_rx_queue(dest_ip); pending = mmnif_read_rx_pending(dest_ip); diff --git a/kernel/tests.c b/kernel/tests.c index 2e05afbb..aaeb86ea 100644 --- a/kernel/tests.c +++ b/kernel/tests.c @@ -214,7 +214,7 @@ void* server_task(void* e) tmp1 = get_clock_tick(); - for (n = 0; n < 1024*1024*4 ; n++) + for (n = 0; n < 1024*4 ; n++) { if (!(n%100)) kprintf("%d-",n); @@ -281,7 +281,7 @@ void* client_task(void* e) /* spew-out the results and bail out of here! */ kprintf("%s\n", dir); - for (n = 0; n <1024*1024*4; n++) + for (n = 0; n <1024*4; n++) { recv(sd,dir,sizeof(dir),0); // udelay(100);