Changeset 50172 in vbox for trunk/src/VBox/Devices/Network
- Timestamp:
- Jan 23, 2014 5:21:08 AM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/Network/lwip-new/src/core/memp.c
r50171 r50172 202 202 */ 203 203 #define LWIP_MEMPOOL(name,num,size,desc) u8_t memp_memory_ ## name ## _base \ 204 [ ((num) * (MEMP_SIZE + MEMP_ALIGN_SIZE(size)))];204 [LWIP_MEM_ALIGN_BUFFER((num) * (MEMP_SIZE + MEMP_ALIGN_SIZE(size)))]; 205 205 #include "lwip/memp_std.h" 206 206 … … 214 214 215 215 /** This is the actual memory used by the pools (all pools in one big block). */ 216 static u8_t memp_memory[MEM_ALIGNMENT - 1 216 static u8_t memp_memory[MEM_ALIGNMENT - 1 /* XXX: LWIP_MEM_ALIGN_BUFFER */ 217 217 #define LWIP_MEMPOOL(name,num,size,desc) + ( (num) * (MEMP_SIZE + MEMP_ALIGN_SIZE(size) ) ) 218 218 #include "lwip/memp_std.h" … … 335 335 for (i = 0; i < MEMP_MAX; ++i) { 336 336 #if MEMP_SEPARATE_POOLS 337 p = (struct memp *) (memp_bases[i]);337 p = (struct memp *)LWIP_MEM_ALIGN(memp_bases[i]); 338 338 #endif /* MEMP_SEPARATE_POOLS */ 339 339 for (j = 0; j < memp_num[i]; ++j) { … … 347 347 for (i = 0; i < MEMP_MAX; ++i) { 348 348 #if MEMP_SEPARATE_POOLS 349 p = (struct memp *) (memp_bases[i]);349 p = (struct memp *)LWIP_MEM_ALIGN(memp_bases[i]); 350 350 #endif /* MEMP_SEPARATE_POOLS */ 351 351 for (j = 0; j < memp_num[i]; ++j) { … … 371 371 for (i = 0; i < MEMP_MAX; ++i) { 372 372 #if MEMP_SEPARATE_POOLS 373 p = (struct memp *) (memp_bases[i]);373 p = (struct memp *)LWIP_MEM_ALIGN(memp_bases[i]); 374 374 #endif /* MEMP_SEPARATE_POOLS */ 375 375 for (j = 0; j < memp_num[i]; ++j) {
Note:
See TracChangeset
for help on using the changeset viewer.