summaryrefslogtreecommitdiff
path: root/nuttx/mm/umm_calloc.c
diff options
context:
space:
mode:
Diffstat (limited to 'nuttx/mm/umm_calloc.c')
-rw-r--r--nuttx/mm/umm_calloc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/nuttx/mm/umm_calloc.c b/nuttx/mm/umm_calloc.c
index 2acf1c9d1..665720947 100644
--- a/nuttx/mm/umm_calloc.c
+++ b/nuttx/mm/umm_calloc.c
@@ -52,11 +52,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 */