summaryrefslogtreecommitdiff
path: root/nuttx/mm/umm_malloc.c
diff options
context:
space:
mode:
Diffstat (limited to 'nuttx/mm/umm_malloc.c')
-rw-r--r--nuttx/mm/umm_malloc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/nuttx/mm/umm_malloc.c b/nuttx/mm/umm_malloc.c
index 8a0bdfec7..6d99e75ab 100644
--- a/nuttx/mm/umm_malloc.c
+++ b/nuttx/mm/umm_malloc.c
@@ -53,11 +53,11 @@
* group. In this build configuration, the user heap structure lies
* in a reserved region at the beginning of the .bss/.data address
* space (CONFIG_ARCH_DATA_VBASE). The size of that region is given by
- * ARCH_DATA_RESERVE
+ * ARCH_DATA_RESERVE_SIZE
*/
# include <nuttx/addrenv.h>
-# define USR_HEAP ((FAR struct mm_heap_s *)CONFIG_ARCH_DATA_VBASE)
+# define USR_HEAP (&ARCH_DATA_RESERVE->ar_usrheap)
#else
/* Otherwise, the user heap data structures are in common .bss */