From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 12541 invoked by alias); 29 Jan 2011 19:32:35 -0000 Received: (qmail 12493 invoked by uid 22791); 29 Jan 2011 19:32:34 -0000 X-SWARE-Spam-Status: No, hits=-1.8 required=5.0 tests=AWL,BAYES_00 X-Spam-Check-By: sourceware.org Received: from hagrid.ecoscentric.com (HELO mail.ecoscentric.com) (212.13.207.197) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Sat, 29 Jan 2011 19:32:29 +0000 Received: from localhost (hagrid.ecoscentric.com [127.0.0.1]) by mail.ecoscentric.com (Postfix) with ESMTP id 0E5EE3370467 for ; Sat, 29 Jan 2011 19:32:27 +0000 (GMT) Received: from mail.ecoscentric.com ([127.0.0.1]) by localhost (hagrid.ecoscentric.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id A23kMC1S80SU; Sat, 29 Jan 2011 19:32:24 +0000 (GMT) From: bugzilla-daemon@bugs.ecos.sourceware.org To: ecos-patches@ecos.sourceware.org Subject: [Bug 1001116] Instruct lwIP to use special section for buffers and heap. X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: eCos X-Bugzilla-Component: Patches and contributions X-Bugzilla-Keywords: X-Bugzilla-Severity: enhancement X-Bugzilla-Who: sergei.gavrikov@gmail.com X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Priority: low X-Bugzilla-Assigned-To: unassigned@bugs.ecos.sourceware.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Changed-Fields: In-Reply-To: References: X-Bugzilla-URL: http://bugs.ecos.sourceware.org/ Auto-Submitted: auto-generated Content-Type: text/plain; charset="UTF-8" MIME-Version: 1.0 Date: Sat, 29 Jan 2011 19:32:00 -0000 Message-Id: <20110129193224.8976E2F78006@mail.ecoscentric.com> Mailing-List: contact ecos-patches-help@ecos.sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Post: List-Help: , Sender: ecos-patches-owner@ecos.sourceware.org X-SW-Source: 2011-01/txt/msg00075.txt.bz2 Please do not reply to this email. Use the web interface provided at: http://bugs.ecos.sourceware.org/show_bug.cgi?id=1001116 --- Comment #14 from Sergei Gavrikov 2011-01-29 19:32:20 GMT --- Ilija, at the least I would stop on this - lwip_net.cdl: cdl_option CYGSEM_LWIP_MEM_SECTION { ... flavor bool default_value 0 active_if CYGDAT_LWIP_MEM_SECTION_NAME ... } - lwipopts.h: #if CYGSEM_LWIP_MEM_SECTION #include #define MEM_SECTION CYGBLD_ATTRIB_SECTION(CYGDAT_LWIP_MEM_SECTION_NAME) #else #define MEM_SECTION #endif - mem.c, memp.c: your Attachment 1094 My comments on lwiP config: - cdl option-semaphore CYGSEM_LWIP_MEM_SECTION is active if other package provides CYGDAT_LWIP_MEM_SECTION_NAME (string) *and* if user select it. (It will be "grayed" for the most eCos targets in `configtool' and this is okay). - above is quite enough to expand the lwIP package by applying your patch for lwiP sources and to *close* this bug. - if you want to force CYGSEM_LWIP_MEM_SECTION, you can distribute one ECM file to import, for example, `lwip_net.ecm' under your HAL `misc' directory which will do it (enable the option), and users will import all proper settings for your target in cases if they need lwIP stack. My thoughts about HAL config: It seems to me you can enter some generic CDL component, for example, component CYG{MEM, or HWR}_HAL_..._SECTION where you can manage also generic data option (HAL, !LWIP) CYGDAT_HAL_..._SECTION_NAME. Why is it? I think your idea to utilize all memory can be useful for other applications too (not only lwIP package). - Right? Now, back to our distressful CYGDAT_LWIP_NET_SECTION_NAME data option. This option in fact should be equal CYGDAT_HAL_..._SECTION_NAME data, if lwIP package has been added (active_if CYGPKG_NET_LWIP). Just now I would not refer to Bug 1001114 here again if we just want to get new lwIP option to manage the placement of memory pools, in fact, to have a way for new definition, MEM_SECTION. Let's apply it and go ahead. What do you/others think? -- Configure bugmail: http://bugs.ecos.sourceware.org/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.