mirror of
https://github.com/apache/nuttx.git
synced 2026-06-02 17:48:54 +08:00
arch/arm64: Fixed up_getusrsp getting stack Pointers
Signed-off-by: wangming9 <wangming9@xiaomi.com> Signed-off-by: lipengfei28 <lipengfei28@xiaomi.com>
This commit is contained in:
@@ -50,7 +50,11 @@
|
|||||||
uintptr_t up_getusrsp(void *regs)
|
uintptr_t up_getusrsp(void *regs)
|
||||||
{
|
{
|
||||||
struct regs_context *ptr = regs;
|
struct regs_context *ptr = regs;
|
||||||
return ptr->regs[REG_X13];
|
#ifndef CONFIG_BUILD_KERNEL
|
||||||
|
return ptr->sp_elx;
|
||||||
|
#else
|
||||||
|
return ptr->sp_el0;
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
/****************************************************************************
|
/****************************************************************************
|
||||||
|
|||||||
Reference in New Issue
Block a user