xtensa:arch: force up_getsp to inline

Up_getsp may be not inline in gcc, thus get the sp
is up_getsp function's sp, not the caller function.

Signed-off-by: zhuyanlin <zhuyanlin1@xiaomi.com>
This commit is contained in:
zhuyanlin
2021-09-15 14:55:27 +08:00
committed by Xiang Xiao
parent 583dce0b98
commit 3acdbef60d
+1
View File
@@ -47,6 +47,7 @@
* Name: up_getsp * Name: up_getsp
****************************************************************************/ ****************************************************************************/
static inline uint32_t up_getsp(void) inline_function;
static inline uint32_t up_getsp(void) static inline uint32_t up_getsp(void)
{ {
register uint32_t sp; register uint32_t sp;