|
From: | David Brown |
Subject: | Re: [lwip-devel] Putting memp_memory (in core/memp.c) in its own section |
Date: | Fri, 21 Oct 2011 16:09:32 +0200 |
User-agent: | Mozilla/5.0 (Windows NT 5.1; rv:6.0.1) Gecko/20110830 Thunderbird/6.0.1 |
On 21/10/2011 15:36, Simon Goldschmidt wrote:
"Bill Auerbach"<address@hidden> wrote:Isn't what you want to do covered by MEMP_SEPARATE_POOLS?Exactly: define MEMP_SEPARATE_POOLS to 1 and prototype the pool with its section in cc.h. e.g. for GCC, to move the UCP_PCBs into the section ".onchip_mem", add this line to cc.h: extern u8_t __attribute__((section(".onchip_mem"))) memp_memory_UDP_PCB_base[]; This is documented in memp.c only, so might be rather hard to find... However, you don't have to change the lwIP sources for that :-) Simon
I did notice the MEMP_SEPARATE_POOLS, but I thought then I would need to have each pool defined separately - with higher risk of forgetting something, or getting the sizes wrong.
I won't change my code at the moment, since it is working fine, but I'll remember that for next time.
Thanks, David
[Prev in Thread] | Current Thread | [Next in Thread] |