arch/sim: add up_getusrsp for sim

Signed-off-by: zhangyuan21 <zhangyuan21@xiaomi.com>
This commit is contained in:
zhangyuan21 2023-04-17 16:53:07 +08:00 committed by Xiang Xiao
parent 841b178782
commit 91d34ffd09
1 changed files with 10 additions and 0 deletions

View File

@ -32,6 +32,16 @@
* Public Functions * Public Functions
****************************************************************************/ ****************************************************************************/
/****************************************************************************
* Name: up_getusrsp
****************************************************************************/
uintptr_t up_getusrsp(void *regs)
{
xcpt_reg_t *ptr = regs;
return ptr[JB_SP];
}
/**************************************************************************** /****************************************************************************
* Name: up_dump_register * Name: up_dump_register
****************************************************************************/ ****************************************************************************/