From e5e9032ea03c749794f2192107b990299ef6180e Mon Sep 17 00:00:00 2001 From: wangmingrong1 Date: Fri, 10 Jan 2025 14:21:22 +0800 Subject: [PATCH] arm64/vector: Reduce two useless instructions Signed-off-by: wangmingrong1 --- arch/arm64/src/common/arm64_vector_table.S | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/arch/arm64/src/common/arm64_vector_table.S b/arch/arm64/src/common/arm64_vector_table.S index e4708cbb8a..a159bac2cf 100644 --- a/arch/arm64/src/common/arm64_vector_table.S +++ b/arch/arm64/src/common/arm64_vector_table.S @@ -89,10 +89,8 @@ /* Increment exception depth */ - mrs \xreg0, tpidrro_el0 - mov \xreg1, #1 - add \xreg0, \xreg0, \xreg1 - msr tpidrro_el0, \xreg0 + add \xreg1, \xreg1, #1 + msr tpidrro_el0, \xreg1 /* Save the FPU registers */