[ECOS] Two TCP/IP stack issues...
Wed Apr 12 03:45:00 GMT 2000
Ian Lance Taylor <email@example.com> writes:
> Date: Tue, 11 Apr 2000 15:10:56 -0600 (MDT)
> From: Gary Thomas <firstname.lastname@example.org>
> Indeed, the correct solution will need to use proper kernel synchronizers.
> We'll need to look at this more closely to determine a proper solution.
> RTEMS uses a single semaphore for the entire networking stack. This
> is overkill, but it works correctly.
Indeed. This is exactly what I did when I ported the BSD 4.3 stack to
Helios. A global mutex was claimed around every system call and
released and reclaimed in each [t]sleep(). Interrupts were delivered
by a thread that also locked the mutex. splx() and friends were just
empty macros. There was also some jiggery pokery with swapping the
u. area and dealing with longjumps out of the protocol stack, but it
was all very simple and the BSD code was not changed at all.
Looking at the sources now, I see that none of this has changed, so it
does not look like it was ever a major performance problem.
Cygnus Solutions, a Red Hat Company
More information about the Ecos-discuss