atexit() functions now called when task killed by task delete; For MCUs with <= 64Kb of SRAM, CONFIG_MM_SMALL can be defined to reduce the memory allocation overhead

git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@3648 42af7a65-404d-4744-a932-0658087f49c3
This commit is contained in:
patacongo 2011-05-28 21:42:18 +00:00
parent 1387296b31
commit b772a58c60
2 changed files with 9 additions and 2 deletions

View File

@ -81,5 +81,5 @@ static uint8_t sim_heap[SIM_HEAP_SIZE];
void up_allocate_heap(void **heap_start, size_t *heap_size)
{
*heap_start = sim_heap;
*heap_size = SIM_HEAP_SIZE;
*heap_size = SIM_HEAP_SIZE;
}

View File

@ -40,6 +40,7 @@
* Included Files
**************************************************************************/
#include <nuttx/config.h>
#include <sys/types.h>
#include <nuttx/irq.h>
@ -64,7 +65,13 @@
# define JB_PC (5)
#endif /* __ASSEMBLY__ */
#define SIM_HEAP_SIZE (4*1024*1024)
/* Size of the simulated heap */
#if CONFIG_MM_SMALL
# define SIM_HEAP_SIZE (64*1024)
#else
# define SIM_HEAP_SIZE (4*1024*1024)
#endif
/* These definitions characterize the compressed filesystem image */