This is the mail archive of the
ecos-discuss@sources.redhat.com
mailing list for the eCos project.
RE: dynamic allocation memory
- To: pengyu xue <pyxue at t2-design dot com>
- Subject: RE: [ECOS] dynamic allocation memory
- From: Gary Thomas <gthomas at redhat dot com>
- Date: Wed, 06 Sep 2000 06:16:54 -0600 (MDT)
- Cc: ecos-discuss at sourceware dot cygnus dot com
On 06-Sep-2000 pengyu xue wrote:
>
> Hi, all:
>
> I use the malloc function in my device driver, but it seems
> something is wrong with this function. So I wonder that ecos-131 support
> the dynamic memory allocation in the target vrc4300-4373. Can someone
> tell me more information about this? And I used memory pool, the same
> result I meet. How to use the memory pool functions?
What does 'something is wrong' mean? Does it work at all? Do you run
out of malloc memory before you think you should? We'll need more data
before we can help much.
As was also pointed out, calling malloc() in an ISR or even DSR is probably
not a really good idea. Can you tell us more about what you're trying to
do?