From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 2903 invoked by alias); 25 May 2006 10:36:22 -0000 Received: (qmail 2886 invoked by uid 22791); 25 May 2006 10:36:19 -0000 X-Spam-Check-By: sourceware.org Received: from londo.lunn.ch (HELO londo.lunn.ch) (80.238.139.98) by sourceware.org (qpsmtpd/0.31) with ESMTP; Thu, 25 May 2006 10:35:36 +0000 Received: from lunn by londo.lunn.ch with local (Exim 3.36 #1 (Debian)) id 1FjDBk-0008Iq-00; Thu, 25 May 2006 12:35:32 +0200 Date: Thu, 25 May 2006 10:36:00 -0000 To: J?rgen Lambrecht Cc: eCos Discussion Message-ID: <20060525103532.GD6189@lunn.ch> Mail-Followup-To: J?rgen Lambrecht , eCos Discussion References: <44757FBE.8090102@tiscali.be> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="s/l3CgOIzMHHjg/5" Content-Disposition: inline In-Reply-To: <44757FBE.8090102@tiscali.be> User-Agent: Mutt/1.5.11+cvs20060403 From: Andrew Lunn X-IsSubscribed: yes Mailing-List: contact ecos-discuss-help@ecos.sourceware.org; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: ecos-discuss-owner@ecos.sourceware.org Subject: Re: [ECOS] tftp server stack problems X-SW-Source: 2006-05/txt/msg00211.txt.bz2 --s/l3CgOIzMHHjg/5 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-length: 725 On Thu, May 25, 2006 at 11:58:22AM +0200, J?rgen Lambrecht wrote: > Hello, > > I use the freeBSD networking stack, but the default stack size for the > tftp server is wrong: > > cdl_option CYGPKG_NET_TFTPD_THREAD_STACK_SIZE { > display "Stack size for TFTP threads." > flavor data > default_value (CYGNUM_HAL_STACK_SIZE_TYPICAL+(3*(SEGSIZE+4))) > > When I use the configtool, or idem with ecosconfig with scripts, > CYGNUM_HAL_STACK_SIZE_TYPICAL is always 0! It looks like this has been broken since 2004-06-17. CYGNUM_HAL_STACK_SIZE_TYPICAL is not a CDL variable, it is a #define in the architecture HAL. Please could you test this patch. Thanks Andrew --s/l3CgOIzMHHjg/5 Content-Type: text/plain; charset=us-ascii Content-Disposition: attachment; filename="tftpd.diff" Content-length: 1553 Index: net/common/current/ChangeLog =================================================================== RCS file: /cvs/ecos/ecos-opt/net/net/common/current/ChangeLog,v retrieving revision 1.76 diff -u -r1.76 ChangeLog --- net/common/current/ChangeLog 26 Mar 2006 11:15:06 -0000 1.76 +++ net/common/current/ChangeLog 25 May 2006 10:35:13 -0000 @@ -1,3 +1,10 @@ +2006-05-25 Andrew Lunn + + * cdl/net.cdl: Fix calculation of TFTPD stack + size. CYGNUM_HAL_STACK_SIZE_TYPICAL is not a CDL variable, it is a + #define, so we need to ensure that the compiler evaluates the + expression, not the CDL library. + 2006-03-26 Andrew Lunn * tests/nc_test_framework.h: Index: net/common/current/cdl/net.cdl =================================================================== RCS file: /cvs/ecos/ecos-opt/net/net/common/current/cdl/net.cdl,v retrieving revision 1.15 diff -u -r1.15 net.cdl --- net/common/current/cdl/net.cdl 2 Aug 2004 10:43:39 -0000 1.15 +++ net/common/current/cdl/net.cdl 25 May 2006 10:35:14 -0000 @@ -170,7 +170,7 @@ cdl_option CYGPKG_NET_TFTPD_THREAD_STACK_SIZE { display "Stack size for TFTP threads." flavor data - default_value (CYGNUM_HAL_STACK_SIZE_TYPICAL+(3*(SEGSIZE+4))) + default_value { "(CYGNUM_HAL_STACK_SIZE_TYPICAL+(3*(SEGSIZE+4)))" } description " This option controls the size of the stack used for the TFTP server. The default should be sufficient for most cases --s/l3CgOIzMHHjg/5 Content-Type: text/plain; charset=us-ascii Content-length: 148 -- Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss --s/l3CgOIzMHHjg/5--