mirror of
https://github.com/apache/nuttx.git
synced 2026-10-06 13:55:15 +00: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:
parent
b0ea6840e1
commit
1c2856dfcb
1 changed files with 5 additions and 1 deletions
|
|
@ -50,7 +50,11 @@
|
|||
uintptr_t up_getusrsp(void *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
|
||||
}
|
||||
|
||||
/****************************************************************************
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue