This is the mail archive of the
ecos-discuss@sourceware.org
mailing list for the eCos project.
Re: dhcp_mgt_stack isn't configurable
- From: "Øyvind Harboe" <oyvind dot harboe at zylin dot com>
- To: "eCos Discussion" <ecos-discuss at ecos dot sourceware dot org>
- Date: Sun, 7 Jan 2007 15:59:58 +0100
- Subject: Re: [ECOS] dhcp_mgt_stack isn't configurable
- References: <c09652430612280709j3cc1c201s88e738f7e42a39fb@mail.gmail.com> <20070107144740.GA27755@lunn.ch>
On 1/7/07, Andrew Lunn <andrew@lunn.ch> wrote:
On Thu, Dec 28, 2006 at 04:09:43PM +0100, ?yvind Harboe wrote:
> Shouldn't this stack size be configurable?
>
> With CYGDBG_IO_ETH_DRIVERS_DEBUG_VERBOSITY=10, diag_printf() makes it
> overflow on my rocket(AT91EB40a w/ethermac) so I increased it by
> 0x1000 and things work fine + eCos no longer detects stack problems
> via it's diagnostic code.
This patch makes the stack size configurable.
Thanks!
I'm not sure but I believe there is another thread for networking that
needs the same patch.
Hmmm....
How about making the default stack size value add some extra
diag_printf() safety margin if ethernet verbose is >0?
Or perhaps a new option to increase stack sizes for *all* threads in
the system to include enough for diag_printf()/other debug code?
Or rewrite diag_printf() not to use the thread stack...
Hmmm... diag_printf() can be called from ISR/DSRs also so considering
thread stack sizes is not sufficient...
--
Øyvind Harboe
http://www.zylin.com
--
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss