[Bug 1001116] Instruct lwIP to use special section for buffers and heap.
bugzilla-daemon@bugs.ecos.sourceware.org
bugzilla-daemon@bugs.ecos.sourceware.org
Mon Jan 24 12:46:00 GMT 2011
Please do not reply to this email. Use the web interface provided at:
http://bugs.ecos.sourceware.org/show_bug.cgi?id=1001116
--- Comment #7 from Sergei Gavrikov <sergei.gavrikov@gmail.com> 2011-01-24 12:45:58 GMT ---
Ilia, IMO, new CDL entries in Attachment 1094 look too complex. As far as I
could understand you should manage only MEM_SECTION definition. May be to use
something more simple in lwip_net.cdl, like below (alone option):
cdl_option CYGOPT_LWIP_MEM_SPEC_SECTION {
display "Use specified section"
requires CYGINT_LWIP_MEM_SECTIONING
active_if CYGIMP_LWIP_MEM_ATTR_SECTION
default_value 0
}
It requires one interface CYGINT_LWIP_MEM_SECTIONING which can be implemented
in HAL (so, the option is active if that is implemented
CYGIMP_LWIP_MEM_ATTR_SECTION will be true).
For lwipopts.h I would put something like this
#if CYGOPT_LWIP_MEM_SPEC_SECTION && CYGDAT_LWIP_MEM_SECTION_NAME
#include <cyg/infra/type.h>
#define MEM_SECTION CYGBLD_ATTRIB_SECTION(CYGDAT_LWIP_MEM_SECTION_NAME)
#else
#define MEM_SECTION
#endif
CYGDAT_LWIP_MEM_SECTION_NAME can be booldata flavor option in your platform CDL
(no complex concatenation, just name -- { ".foo" }.
--
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.
More information about the Ecos-patches
mailing list