This is the mail archive of the
ecos-discuss@sourceware.org
mailing list for the eCos project.
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: Thu, 28 Dec 2006 16:09:43 +0100
- Subject: [ECOS] dhcp_mgt_stack isn't configurable
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.
### Eclipse Workspace Patch 1.0
#P ecos
Index: packages/net/common/current/src/dhcp_support.c
===================================================================
RCS file: /cvs/ecos/ecos-opt/net/net/common/current/src/dhcp_support.c,v
retrieving revision 1.2
diff -u -r1.2 dhcp_support.c
--- packages/net/common/current/src/dhcp_support.c 12 Jan 2003
04:53:28 -0000 1.2
+++ packages/net/common/current/src/dhcp_support.c 28 Dec 2006 15:05:41 -0000
@@ -222,7 +222,9 @@
cyg_handle_t dhcp_mgt_thread_h = 0;
cyg_thread dhcp_mgt_thread;
-#define STACK_SIZE (CYGNUM_HAL_STACK_SIZE_TYPICAL + sizeof(struct bootp))
+// FIX!!!! why isn't this configureable??? The amount of stack
+// depends on whether diag_printf() is used or not.
+#define STACK_SIZE (CYGNUM_HAL_STACK_SIZE_TYPICAL + sizeof(struct
bootp)+0x1000)
static cyg_uint8 dhcp_mgt_stack[ STACK_SIZE ];
void dhcp_start_dhcp_mgt_thread( void )
--
Ø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