Xtensa port: Fixed function setting Sawp return value.

The retval field shall hold the return value itself not a pointer on its
location.

Change-Id: I3f9e225f2bdd501f88441946b5187ebbd17a71e3
Signed-off-by: Mazen NEIFER <mazen@nestwave.com>
This commit is contained in:
Mazen NEIFER 2017-01-31 15:06:07 +01:00 committed by Andrew Boie
commit bb038cc1be

View file

@ -61,9 +61,7 @@ static ALWAYS_INLINE void nanoArchInit(void)
static ALWAYS_INLINE void
_set_thread_return_value(struct k_thread *thread, unsigned int value)
{
/* write into 'eax' slot created in _Swap() entry */
*(unsigned int *)(thread->callee_saved.retval) = value;
thread->callee_saved.retval = value;
}
extern void nano_cpu_atomic_idle(unsigned int imask);