mirror of
https://github.com/apache/nuttx.git
synced 2026-06-05 07:12:54 +08:00
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:
@@ -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;
|
||||||
|
|||||||
Reference in New Issue
Block a user