arch: remove instances of fiberRtnValueSet()

Obsolete, replaced by _set_thread_return_value().

Change-Id: I23e9cfc07e43542f0965817edc3552d456fd2ef3
Signed-off-by: Benjamin Walsh <benjamin.walsh@windriver.com>
This commit is contained in:
Benjamin Walsh 2016-12-21 11:16:01 -05:00 committed by Anas Nashif
commit bfa5653e9a
4 changed files with 14 additions and 10 deletions

View file

@ -62,7 +62,8 @@ GDATA(_kernel)
* When _Swap() is invoked, we know the decision to perform a context switch or * When _Swap() is invoked, we know the decision to perform a context switch or
* not has already been taken and a context switch must happen. * not has already been taken and a context switch must happen.
* *
* @return may contain a return value setup by a call to fiberRtnValueSet() * @return may contain a return value setup by a call to
* _set_thread_return_value()
* *
* C function prototype: * C function prototype:
* *
@ -85,7 +86,7 @@ SECTION_FUNC(TEXT, _Swap)
* Carve space for the return value. Setting it to a defafult of * Carve space for the return value. Setting it to a defafult of
* -EAGAIN eliminates the need for the timeout code to set it. * -EAGAIN eliminates the need for the timeout code to set it.
* If another value is ever needed, it can be modified with * If another value is ever needed, it can be modified with
* fiberRtnValueSet(). * _set_thread_return_value().
*/ */
ld r3, [_k_neg_eagain] ld r3, [_k_neg_eagain]
st_s r3, [r2, _thread_offset_to_return_value] st_s r3, [r2, _thread_offset_to_return_value]

View file

@ -267,7 +267,8 @@ _context_switch:
* On Cortex-M0/M0+ the intlock key is represented by the PRIMASK register, * On Cortex-M0/M0+ the intlock key is represented by the PRIMASK register,
* as BASEPRI is not available. * as BASEPRI is not available.
* *
* @return may contain a return value setup by a call to fiberRtnValueSet() * @return may contain a return value setup by a call to
* _set_thread_return_value()
* *
* C function prototype: * C function prototype:
* *

View file

@ -108,9 +108,10 @@ SECTION_FUNC(exception.other, _Swap)
*/ */
ldw r3, _thread_offset_to_key(r2) ldw r3, _thread_offset_to_key(r2)
/* Load return value into r2 (return value register). -EAGAIN /*
* unless someone previously called fiberRtnValueSet(). Do this * Load return value into r2 (return value register). -EAGAIN unless
* before we potentially unlock interrupts. * someone previously called _set_thread_return_value(). Do this before
* we potentially unlock interrupts.
*/ */
ldw r2, _thread_offset_to_retval(r2) ldw r2, _thread_offset_to_retval(r2)

View file

@ -80,7 +80,8 @@
* Floating point registers are currently NOT scrubbed, and are subject to * Floating point registers are currently NOT scrubbed, and are subject to
* potential security leaks. * potential security leaks.
* *
* @return -EAGAIN, or a return value set by a call to fiberRtnValueSet() * @return -EAGAIN, or a return value set by a call to
* _set_thread_return_value()
* *
* C function prototype: * C function prototype:
* *
@ -115,7 +116,7 @@ SECTION_FUNC(TEXT, _Swap)
* Carve space for the return value. Setting it to a defafult of * Carve space for the return value. Setting it to a defafult of
* -EAGAIN eliminates the need for the timeout code to set it. * -EAGAIN eliminates the need for the timeout code to set it.
* If another value is ever needed, it can be modified with * If another value is ever needed, it can be modified with
* fiberRtnValueSet(). * _set_thread_return_value().
*/ */
pushl _k_neg_eagain pushl _k_neg_eagain
@ -302,7 +303,7 @@ CROHandlingDone:
movl _thread_offset_to_esp(%eax), %esp movl _thread_offset_to_esp(%eax), %esp
/* load return value from a possible fiberRtnValueSet() */ /* load return value from a possible _set_thread_return_value() */
popl %eax popl %eax
@ -317,7 +318,7 @@ CROHandlingDone:
* %eax may contain one of these values: * %eax may contain one of these values:
* *
* - the return value for _Swap() that was set up by a call to * - the return value for _Swap() that was set up by a call to
* fiberRtnValueSet() * _set_thread_return_value()
* - in legacy kernel, same value as %ebx, which is non-volatile * - in legacy kernel, same value as %ebx, which is non-volatile
* - in unified kernel, -EINVAL * - in unified kernel, -EINVAL
*/ */