This is the mail archive of the
ecos-discuss@sources.redhat.com
mailing list for the eCos project.
Trying to figure out redboot TCP/IP stack
- From: Bob Koninckx <bob dot koninckx at o-3s dot com>
- To: ecos-discuss at sources dot redhat dot com
- Date: Sun, 19 Sep 2004 11:41:35 +0200
- Subject: [ECOS] Trying to figure out redboot TCP/IP stack
- Organization: o-3s
- Reply-to: bob dot koninckx at o-3s dot com
Hi folks,
Just trying to understand, what's the reason for the call to
MS_TICKS_DELAY in function __tcp_poll, since function __timer_poll
already calls MS_TICKS_DELAY in a loop ?
void
__tcp_poll(void) {
__enet_poll();
MS_TICKS_DELAY();
__timer_poll();
}
Rewriting it as
void
__tcp_poll(void) {
__enet_poll();
__timer_poll();
}
apparently doesn't break anything and removes an unnecessary delay (and
hence the risk for hardware overrun) from the code.
Bob
--
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss