A few fixes for compilation errors due to recent address environment fixes
This commit is contained in:
parent
f7899c655a
commit
e79d6e3c8b
@ -498,8 +498,7 @@ int up_addrenv_attach(FAR struct task_group_s *group, FAR struct tcb_s *tcb)
|
||||
*
|
||||
****************************************************************************/
|
||||
|
||||
int up_addrenv_detach(FAR struct task_group_s *group,
|
||||
FAR struct task_group_s *tcb);
|
||||
int up_addrenv_detach(FAR struct task_group_s *group, FAR struct tcb_s *tcb);
|
||||
{
|
||||
/* There is nothing that needs to be done */
|
||||
|
||||
|
@ -208,7 +208,7 @@ int exec_module(FAR const struct binary_s *binp)
|
||||
/* Assign the address environment to the new task group */
|
||||
|
||||
#ifdef CONFIG_ADDRENV
|
||||
ret = up_addrenv_assign(binp->addrenv, tcb->group);
|
||||
ret = up_addrenv_assign(binp->addrenv, tcb->cmn.group);
|
||||
if (ret < 0)
|
||||
{
|
||||
err = -ret;
|
||||
|
@ -144,4 +144,6 @@ stopper" before I gave up for now was during building dependencies:
|
||||
ASlink-Error-<cannot open> : "bin/mm_initialize.rel"
|
||||
|
||||
Clearly there is something wrong with the command line options given to SDCC because it is
|
||||
trying to compile and link when we really only want dependencies.
|
||||
trying to compile and link when we really only want dependencies. I did not spend very much
|
||||
time trying to solve the problem; I assume that it is not too difficult.
|
||||
|
||||
|
@ -879,8 +879,7 @@ int up_addrenv_attach(FAR struct task_group_s *group, FAR struct tcb_s *tcb);
|
||||
****************************************************************************/
|
||||
|
||||
#ifdef CONFIG_ADDRENV
|
||||
int up_addrenv_detach(FAR struct task_group_s *group,
|
||||
FAR struct task_group_s *tcb);
|
||||
int up_addrenv_detach(FAR struct task_group_s *group, FAR struct tcb_s *tcb);
|
||||
#endif
|
||||
|
||||
/****************************************************************************
|
||||
|
@ -55,6 +55,8 @@
|
||||
#include <nuttx/fs/fs.h>
|
||||
#include <nuttx/net/net.h>
|
||||
|
||||
#include <arch/arch.h>
|
||||
|
||||
/********************************************************************************
|
||||
* Pre-processor Definitions
|
||||
********************************************************************************/
|
||||
|
@ -270,8 +270,8 @@ int pthread_create(FAR pthread_t *thread, FAR pthread_attr_t *attr,
|
||||
#ifdef CONFIG_ADDRENV
|
||||
/* Share the address environment of the parent task group. */
|
||||
|
||||
ret = up_addrenv_attach(ptcb->group,
|
||||
(FAR const struct tcb_s *)g_readytorun.head);
|
||||
ret = up_addrenv_attach(ptcb->cmn.group,
|
||||
(FAR struct tcb_s *)g_readytorun.head);
|
||||
if (ret < 0)
|
||||
{
|
||||
errcode = -ret;
|
||||
|
@ -193,7 +193,7 @@ int sched_releasetcb(FAR struct tcb_s *tcb, uint8_t ttype)
|
||||
/* Release this thread's reference to the address environment */
|
||||
|
||||
#ifdef CONFIG_ADDRENV
|
||||
ret = up_addrenv_detach(tcp->group, tcb);
|
||||
ret = up_addrenv_detach(tcb->group, tcb);
|
||||
#endif
|
||||
|
||||
/* Leave the group (if we did not already leave in task_exithook.c) */
|
||||
|
Loading…
Reference in New Issue
Block a user