This is the mail archive of the
ecos-discuss@sourceware.org
mailing list for the eCos project.
Re: Atomic functions
- From: Nick Garnett <nickg at ecoscentric dot com>
- To: manu shetty <shetty_m at yahoo dot com>
- Cc: ecos-discuss at ecos dot sourceware dot org
- Date: 31 Jul 2006 14:15:40 +0100
- Subject: Re: [ECOS] Atomic functions
- References: <20060731120057.12621.qmail@web51714.mail.yahoo.com>
manu shetty <shetty_m@yahoo.com> writes:
> Hi,
> Does the ECOS supports the "atomic functions"
> [atomic_set,atomic_read,atomic_inc] of Linux ?
No.
What exactly are you trying to do? You have so far asked about
sock_register(), an internal function in the Linux networking stack,
device driver bottom half interrupt handlers and now atomic
operations.
It sounds to me like you are trying to shoehorn some large chunk of
Linux kernel code into the eCos network stack. This is probably going
to be an very hard job. eCos is not Linux, you cannot expect to find
any of the Linux kernel calls available. The BSD network stack is
built on quite different principles from the Linux stack, so trying to
glue code from Linux into it is almost bound to fail.
If the functionality you want is available in FreeBSD, then I suggest
you start from there. You would have more chance of getting it to
work than from the Linux code.
Alternatively, if you need a lot of Linux functionality, use
Linux. Perhaps eCos is not suitable for what you want to do.
--
Nick Garnett eCos Kernel Architect
http://www.ecoscentric.com The eCos and RedBoot experts
--
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss