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:
liaoao 2023-10-17 14:32:39 +08:00 committed by Xiang Xiao
parent bc64559bac
commit 6e604741f6

View File

@ -70,7 +70,6 @@
****************************************************************************/
GTEXT(up_saveusercontext)
SECTION_FUNC(text, up_saveusercontext)
str x0, [sp, #-16]!
stp x0, x1, [x0, #8 * REG_X0]
stp x2, x3, [x0, #8 * REG_X2]
@ -99,8 +98,6 @@ SECTION_FUNC(text, up_saveusercontext)
arm64_exception_context_save x4 x5 x0
ldr x0, [sp], #16
ret
/****************************************************************************