Xtensa port: Set Swap function result to -EAGAIN.
Change-Id: I70a651012d5da873c98f6b13ada5e80e67e18e0c Signed-off-by: Mazen NEIFER <mazen@nestwave.com>
This commit is contained in:
parent
0cbf12489e
commit
884005673c
1 changed files with 6 additions and 0 deletions
|
@ -59,6 +59,12 @@ _Swap:
|
|||
|
||||
s32i a3, sp, XT_SOL_exit /* 0 to flag as solicited frame */
|
||||
s32i sp, a4, THREAD_OFFSET(sp) /* current->arch.topOfStack := sp */
|
||||
/*
|
||||
* Set _Swap()'s default return code to -EAGAIN. This eliminates the
|
||||
* need for the timeout code to set it itself.
|
||||
*/
|
||||
movi a3, -11 /* a3 := -EAGAIN. TODO: Use a macro here insted of 11 */
|
||||
s32i a3, a4, THREAD_OFFSET(retval) /* current->arch.retval := -EAGAIN */
|
||||
|
||||
#if XCHAL_CP_NUM > 0
|
||||
/* Clear CPENABLE, also in task's co-processor state save area. */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue