mirror of
https://github.com/apache/nuttx.git
synced 2026-05-26 02:36:11 +08:00
addrenv interface changes: up_addrenv_create() may need to create .text and .bss/.data separately because of differing access privileges (read/execute vs read/write). And, as a consequence, up_addrenv_vaddr() needs to be split into up_addrenv_vtext(0 and up_addrenv_vdata().
This commit is contained in:
@@ -208,11 +208,11 @@ int exec_module(FAR const struct binary_s *binp)
|
||||
/* Assign the address environment to the new task group */
|
||||
|
||||
#ifdef CONFIG_ARCH_ADDRENV
|
||||
ret = up_addrenv_assign(binp->addrenv, tcb->cmn.group);
|
||||
ret = up_addrenv_assign(&binp->addrenv, tcb->cmn.group);
|
||||
if (ret < 0)
|
||||
{
|
||||
err = -ret;
|
||||
bdbg("up_addrenv_assign() failed: %d\n", ret);
|
||||
bdbg("ERROR: up_addrenv_assign() failed: %d\n", ret);
|
||||
goto errout_with_stack;
|
||||
}
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user