kernel, xtensa: Switch-specific thread return value
When using _arch_switch() context switching, the thread return value is a generic hook and not provided by the architecture. Signed-off-by: Andy Ross <andrew.j.ross@intel.com>
This commit is contained in:
parent
bf2139331c
commit
2c1449bc81
3 changed files with 17 additions and 1 deletions
|
@ -138,6 +138,17 @@ extern struct _kernel _kernel;
|
|||
|
||||
#include <kernel_arch_func.h>
|
||||
|
||||
#if CONFIG_USE_SWITCH
|
||||
/* This is a arch function traditionally, but when the switch-based
|
||||
* _Swap() is in use it's a simple inline provided by the kernel.
|
||||
*/
|
||||
static ALWAYS_INLINE void
|
||||
_set_thread_return_value(struct k_thread *thread, unsigned int value)
|
||||
{
|
||||
thread->swap_retval = value;
|
||||
}
|
||||
#endif
|
||||
|
||||
static ALWAYS_INLINE void
|
||||
_set_thread_return_value_with_data(struct k_thread *thread,
|
||||
unsigned int value,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue