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:
parent
95428c75e9
commit
bb038cc1be
1 changed files with 1 additions and 3 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue