diff options
author | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2011-04-05 17:33:50 +0000 |
---|---|---|
committer | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2011-04-05 17:33:50 +0000 |
commit | 3607bf2b4b1f2087cfb52ab4591f2ac347698a9c (patch) | |
tree | 0c034fe7e16b4d77846b1c3dea995474238da4f0 /nuttx/arch/arm | |
parent | 9f054efd67930f2dd6ef2a2f4e28eea3d8b10431 (diff) | |
download | px4-nuttx-3607bf2b4b1f2087cfb52ab4591f2ac347698a9c.tar.gz px4-nuttx-3607bf2b4b1f2087cfb52ab4591f2ac347698a9c.tar.bz2 px4-nuttx-3607bf2b4b1f2087cfb52ab4591f2ac347698a9c.zip |
More separation of kernel- and user-memory management
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@3468 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx/arch/arm')
-rwxr-xr-x | nuttx/arch/arm/src/sam3u/sam3u_allocateheap.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/nuttx/arch/arm/src/sam3u/sam3u_allocateheap.c b/nuttx/arch/arm/src/sam3u/sam3u_allocateheap.c index 2bd8cacab..c8ea98ade 100755 --- a/nuttx/arch/arm/src/sam3u/sam3u_allocateheap.c +++ b/nuttx/arch/arm/src/sam3u/sam3u_allocateheap.c @@ -43,6 +43,8 @@ #include <debug.h> #include <nuttx/arch.h> +#include <nuttx/kmalloc.h> + #include <arch/board/board.h> #include "chip.h" @@ -117,10 +119,10 @@ void up_allocate_heap(FAR void **heap_start, size_t *heap_size) #if CONFIG_MM_REGIONS > 1 void up_addregion(void) { - mm_addregion((FAR void*)SAM3U_INTSRAM1_BASE, CONFIG_SAM3U_SRAM1_SIZE); + kmm_addregion((FAR void*)SAM3U_INTSRAM1_BASE, CONFIG_SAM3U_SRAM1_SIZE); #if CONFIG_MM_REGIONS > 2 - mm_addregion((FAR void*)SAM3U_NFCSRAM_BASE, CONFIG_SAM3U_NFCSRAM_SIZE); + kmm_addregion((FAR void*)SAM3U_NFCSRAM_BASE, CONFIG_SAM3U_NFCSRAM_SIZE); #endif } #endif |