mirror of
https://github.com/apache/nuttx.git
synced 2026-05-30 05:16:47 +08:00
arch: up_getusrsp change to inline and implement in irq.h
Signed-off-by: buxiasen <buxiasen@xiaomi.com>
This commit is contained in:
@@ -227,5 +227,12 @@ struct xcptcontext
|
||||
#define up_getusrpc(regs) \
|
||||
(((uint32_t *)((regs) ? (regs) : up_current_regs()))[REG_EPC])
|
||||
|
||||
/****************************************************************************
|
||||
* Name: up_getusrsp
|
||||
****************************************************************************/
|
||||
|
||||
#define up_getusrsp(regs) \
|
||||
((uintptr_t)((uint32_t *)(regs))[REG_SP])
|
||||
|
||||
#endif /* __ASSEMBLY__ */
|
||||
#endif /* __ARCH_MISOC_INCLUDE_LM32_IRQ_H */
|
||||
|
||||
Reference in New Issue
Block a user