This is the mail archive of the ecos-patches@sourceware.org mailing list for the eCos project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug 1001116] Instruct lwIP to use special section for buffers and heap.


Please do not reply to this email. Use the web interface provided at:
http://bugs.ecos.sourceware.org/show_bug.cgi?id=1001116

--- Comment #22 from Sergei Gavrikov <sergei.gavrikov@gmail.com> 2011-01-30 16:01:24 GMT ---
Maybe this will be obsolete comment, but

(In reply to comment #18)
> (In reply to comment #17)
...
> > ... to simplify testing I used ".2ram.lwip" section attribute:
> > cdl_configuration eCos {
> >     template    lwip_eth ;
> > };
> > cdl_option CYGOPT_LWIP_MEM_SECTION {
> >     user_value 1
> > };
> > cdl_option CYGDAT_LWIP_MEM_SECTION_NAME {
> >     user_value "\".2ram.lwip\""
> > };
> >
...
> I have little experience with ECM and i find it as a very powerful mechanism
> but i AFAIK unfortunately there is not a way for automatic import (someting
> like import or include statement in CDL). IMO this may be inconvenient for
> configtool users as it requires extra clicking.
> 
> Therefore i would prefer something that will not depend on ECM. One way is:
> 
>      cdl_option CYGOPT_LWIP_MEM_SECTION {
>           ...
>           default_value 1
>           ...
>      }

I disagreed with above, as for the most targets we will see *grayed* and
*checked* box in CT:

  [x] Use additional memory section

To reduse mouse traffic you can use such a trick:

    cdl_option CYGOPT_LWIP_MEM_SECTION {
        ...
        default_value { is_substr(CYGDAT_LWIP_MEM_SECTION_NAME, ".") }
        active_if     CYGDAT_LWIP_MEM_SECTION_NAME

The box will be unchecked until booldata in your HAL (CYGDAT_.*_NAME) is not
proper section name. However, this was quickly tested only. 

> If CYGDAT_LWIP_MEM_SECTION_NAME is active than recommended action will be to
> use it. If not active, then CYGSEM_LWIP_MEM_SECTION is grey and it's value is
> irrelevant.

[snip]

> Below is my test case for reference and review.
> 
> Please comment.

As you have another ideas (I've seen it in your next comment), I cut the
snippets and does not comment it here.

-- 
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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]