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:
parent
747fec226c
commit
c968422a78
2 changed files with 7 additions and 3 deletions
|
@ -51,9 +51,6 @@ extern "C" {
|
||||||
|
|
||||||
typedef struct __esf __esf_t;
|
typedef struct __esf __esf_t;
|
||||||
|
|
||||||
void xtensa_switch(void *switch_to, void **switched_from);
|
|
||||||
#define z_arch_switch xtensa_switch
|
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
|
@ -83,6 +83,13 @@ static ALWAYS_INLINE void z_arch_kernel_init(void)
|
||||||
#endif
|
#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
|
#ifdef __cplusplus
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue