arm64_vector: no need to save x0 to sp
It will cause an incorrect sp value saved in context when saving X0 to sp. Signed-off-by: liaoao <liaoao@xiaomi.com>
This commit is contained in:
parent
bc64559bac
commit
6e604741f6
@ -70,7 +70,6 @@
|
|||||||
****************************************************************************/
|
****************************************************************************/
|
||||||
GTEXT(up_saveusercontext)
|
GTEXT(up_saveusercontext)
|
||||||
SECTION_FUNC(text, up_saveusercontext)
|
SECTION_FUNC(text, up_saveusercontext)
|
||||||
str x0, [sp, #-16]!
|
|
||||||
|
|
||||||
stp x0, x1, [x0, #8 * REG_X0]
|
stp x0, x1, [x0, #8 * REG_X0]
|
||||||
stp x2, x3, [x0, #8 * REG_X2]
|
stp x2, x3, [x0, #8 * REG_X2]
|
||||||
@ -99,8 +98,6 @@ SECTION_FUNC(text, up_saveusercontext)
|
|||||||
|
|
||||||
arm64_exception_context_save x4 x5 x0
|
arm64_exception_context_save x4 x5 x0
|
||||||
|
|
||||||
ldr x0, [sp], #16
|
|
||||||
|
|
||||||
ret
|
ret
|
||||||
|
|
||||||
/****************************************************************************
|
/****************************************************************************
|
||||||
|
Loading…
Reference in New Issue
Block a user