You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by GitBox <gi...@apache.org> on 2022/04/29 15:40:44 UTC
[GitHub] [incubator-nuttx] pussuw commented on a diff in pull request #6176: UMM: Implement getter for address environment heap start vaddr
pussuw commented on code in PR #6176:
URL: https://github.com/apache/incubator-nuttx/pull/6176#discussion_r861925157
##########
binfmt/binfmt_execmodule.c:
##########
@@ -173,8 +174,15 @@ int exec_module(FAR const struct binary_s *binp,
goto errout_with_envp;
}
- binfo("Initialize the user heap (heapsize=%d)\n", binp->addrenv.heapsize);
- umm_initialize((FAR void *)CONFIG_ARCH_HEAP_VBASE, binp->addrenv.heapsize);
+ ret = up_addrenv_vheap(&binp->addrenv, &vheap);
+ if (ret < 0)
+ {
+ berr("ERROR: up_addrenv_vheap() failed: %d\n", ret);
+ goto errout_with_addrenv;
+ }
+
+ binfo("Initialize the user heap (heapsize=%zu)\n", binp->addrenv.heapsize);
Review Comment:
Sure
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@nuttx.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org