sim: remove unused variable in sim_saveusercontext()
Signed-off-by: ligd <liguiding1@xiaomi.com>
This commit is contained in:
parent
1544adb548
commit
18beaaa480
|
@ -89,13 +89,11 @@
|
||||||
({ \
|
({ \
|
||||||
irqstate_t flags = up_irq_flags(); \
|
irqstate_t flags = up_irq_flags(); \
|
||||||
uint32_t *env = (uint32_t *)saveregs + JB_FLAG; \
|
uint32_t *env = (uint32_t *)saveregs + JB_FLAG; \
|
||||||
int ret; \
|
|
||||||
\
|
\
|
||||||
env[0] = flags & UINT32_MAX; \
|
env[0] = flags & UINT32_MAX; \
|
||||||
env[1] = (flags >> 32) & UINT32_MAX; \
|
env[1] = (flags >> 32) & UINT32_MAX; \
|
||||||
\
|
\
|
||||||
ret = setjmp(saveregs); \
|
setjmp(saveregs); \
|
||||||
ret; \
|
|
||||||
})
|
})
|
||||||
#define sim_fullcontextrestore(restoreregs) \
|
#define sim_fullcontextrestore(restoreregs) \
|
||||||
do \
|
do \
|
||||||
|
|
Loading…
Reference in New Issue