arch/sim: add up_getusrsp for sim
Signed-off-by: zhangyuan21 <zhangyuan21@xiaomi.com>
This commit is contained in:
parent
841b178782
commit
91d34ffd09
|
@ -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
|
||||||
****************************************************************************/
|
****************************************************************************/
|
||||||
|
|
Loading…
Reference in New Issue