From 6e604741f652c5c9a3099e067316f1efc30b0f96 Mon Sep 17 00:00:00 2001 From: liaoao Date: Tue, 17 Oct 2023 14:32:39 +0800 Subject: [PATCH] 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 --- arch/arm64/src/common/arm64_vectors.S | 3 --- 1 file changed, 3 deletions(-) diff --git a/arch/arm64/src/common/arm64_vectors.S b/arch/arm64/src/common/arm64_vectors.S index 08b6a6f901..e6541b519c 100644 --- a/arch/arm64/src/common/arm64_vectors.S +++ b/arch/arm64/src/common/arm64_vectors.S @@ -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 /****************************************************************************