xtensa: fix z_arch_switch()

This was in the wrong header and declared as a macro instead
of an inline function.

Signed-off-by: Andrew Boie <andrew.p.boie@intel.com>
This commit is contained in:
Andrew Boie 2019-10-03 14:50:46 -07:00 committed by Anas Nashif
parent 747fec226c
commit c968422a78
2 changed files with 7 additions and 3 deletions

View File

@ -51,9 +51,6 @@ extern "C" {
typedef struct __esf __esf_t;
void xtensa_switch(void *switch_to, void **switched_from);
#define z_arch_switch xtensa_switch
#ifdef __cplusplus
}
#endif

View File

@ -83,6 +83,13 @@ static ALWAYS_INLINE void z_arch_kernel_init(void)
#endif
}
void xtensa_switch(void *switch_to, void **switched_from);
static inline void z_arch_switch(void *switch_to, void **switched_from)
{
return xtensa_switch(switch_to, switched_from);
}
#ifdef __cplusplus
}
#endif