[RFC 4/9] * Apply previous ecos modifications to lwip
Will Wagner <[email protected]> Thu, 27 Jun 2013 20:22:42 +0100
| Newsgroups | gmane.os.ecos.devel |
|---|---|
| Message-ID | <[email protected]> |
There had been a couple of changes to lwip source files, these changes need to be ported to the new version Signed-off-by: Andrew Parlane <[email protected]> Signed-off-by: Will Wagner <[email protected]> --- packages/net/lwip_tcpip/current/src/core/mem.c | 2 +- packages/net/lwip_tcpip/current/src/core/memp.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/net/lwip_tcpip/current/src/core/mem.c b/packages/net/lwip_tcpip/current/src/core/mem.c index 1659a2c..753162d 100644 --- a/packages/net/lwip_tcpip/current/src/core/mem.c +++ b/packages/net/lwip_tcpip/current/src/core/mem.c @@ -179,7 +179,7 @@ struct mem { * how that space is calculated). */ #ifndef LWIP_RAM_HEAP_POINTER /** the heap. we need one struct mem at the end and some room for alignment */ -u8_t ram_heap[MEM_SIZE_ALIGNED + (2*SIZEOF_STRUCT_MEM) + MEM_ALIGNMENT]; +u8_t ram_heap[MEM_SIZE_ALIGNED + (2*SIZEOF_STRUCT_MEM) + MEM_ALIGNMENT] MEM_SECTION; #define LWIP_RAM_HEAP_POINTER ram_heap #endif /* LWIP_RAM_HEAP_POINTER */ diff --git a/packages/net/lwip_tcpip/current/src/core/memp.c b/packages/net/lwip_tcpip/current/src/core/memp.c index 9f680e2..c269fc8 100644 --- a/packages/net/lwip_tcpip/current/src/core/memp.c +++ b/packages/net/lwip_tcpip/current/src/core/memp.c @@ -170,7 +170,7 @@ static u8_t *const memp_bases[] = { static u8_t memp_memory[MEM_ALIGNMENT - 1 #define LWIP_MEMPOOL(name,num,size,desc) + ( (num) * (MEMP_SIZE + MEMP_ALIGN_SIZE(size) ) ) #include "lwip/memp_std.h" -]; +] MEM_SECTION; #endif /* MEMP_SEPARATE_POOLS */ -- 1.8.1.msysgit.1