mirror of
https://github.com/lwip-tcpip/lwip.git
synced 2024-10-04 05:39:53 +00:00
GCC didn't like memp_memory_XXX -> now using memp_memory_XXX_base (as in Bill's original patch)
This commit is contained in:
parent
763760503b
commit
e4d19dc4a0
@ -145,18 +145,18 @@ static const char *memp_desc[MEMP_MAX] = {
|
|||||||
|
|
||||||
#if MEMP_SEPARATE_POOLS
|
#if MEMP_SEPARATE_POOLS
|
||||||
|
|
||||||
/** This creates each memory pool. These are named memp_memory_XXX (where XXX
|
/** This creates each memory pool. These are named memp_memory_XXX_base (where
|
||||||
* is the name of the pool defined in memp_std.h).
|
* XXX is the name of the pool defined in memp_std.h).
|
||||||
* To relocate a pool, declare it as extern in cc.h. Example for GCC:
|
* To relocate a pool, declare it as extern in cc.h. Example for GCC:
|
||||||
* extern u8_t __attribute__((section(".onchip_mem"))) memp_memory_UDP_PCB[];
|
* extern u8_t __attribute__((section(".onchip_mem"))) memp_memory_UDP_PCB_base[];
|
||||||
*/
|
*/
|
||||||
#define LWIP_MEMPOOL(name,num,size,desc) u8_t memp_memory_ ## name \
|
#define LWIP_MEMPOOL(name,num,size,desc) u8_t memp_memory_ ## name ## _base \
|
||||||
## [((num) * (MEMP_SIZE + MEMP_ALIGN_SIZE(size)))];
|
[((num) * (MEMP_SIZE + MEMP_ALIGN_SIZE(size)))];
|
||||||
#include "lwip/memp_std.h"
|
#include "lwip/memp_std.h"
|
||||||
|
|
||||||
/** This array holds the base of each memory pool. */
|
/** This array holds the base of each memory pool. */
|
||||||
static u8_t *const memp_bases[] = {
|
static u8_t *const memp_bases[] = {
|
||||||
#define LWIP_MEMPOOL(name,num,size,desc) memp_memory_ ## name,
|
#define LWIP_MEMPOOL(name,num,size,desc) memp_memory_ ## name ## _base,
|
||||||
#include "lwip/memp_std.h"
|
#include "lwip/memp_std.h"
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user