[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[lwip-devel] [bug #26133] Processor specific porting needs flexibility i
[lwip-devel] [bug #26133] Processor specific porting needs flexibility in terms of placement of various memory pools.
Wed, 15 Apr 2009 21:06:27 +0000
Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; YComp 22.214.171.124; SV1; GTB5)
Follow-up Comment #4, bug #26133 (project lwip):
>Ideally this should be an optional feature, so the existing
>behaviour is the default (as that is what most will want) and >those that
need it could specify something like #define >LWIP_MEMP_EXTERNALLY_ALLOCATED 1
(just a suggestion for the >name) in lwipopts.h
Sure,This would be an optional feature for those who want to have finer
control on the placement rather than compiler chosen one.
One way is as below.
static u8_t* memp_memory;
u8_t** lwip_memp_ptr = &memp_memory;
u32_t lwip_memp_len = xxx; // length of the memp memory
and init routine will set the pointer to appropriate location
*lwip_memp_ptr = xxx;
Reply to this item at:
Message sent via/by Savannah