Skip to content

Commit 20ce41d

Browse files
pussuwxiaoxiang781216
authored andcommitted
arm64_vector_table.S: Remove unnecessary instruction
The expression "sub x0, x0, apache#8 * XCPTCONTEXT_GP_REGS" is void, as the next instruction overwrites x0 anyway.
1 parent 0a17b87 commit 20ce41d

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

arch/arm64/src/common/arm64_vector_table.S

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -266,8 +266,6 @@ arm64_exit_exc_fpu_done:
266266
sub x0, x0, x1
267267
msr tpidrro_el0, x0
268268

269-
ldp x30, x0, [sp, #8 * REG_X30]
270-
sub x0, x0, #8 * XCPTCONTEXT_GP_REGS
271269
ldp x0, x1, [sp, #8 * REG_X0]
272270
ldp x2, x3, [sp, #8 * REG_X2]
273271
ldp x4, x5, [sp, #8 * REG_X4]
@@ -283,6 +281,7 @@ arm64_exit_exc_fpu_done:
283281
ldp x24, x25, [sp, #8 * REG_X24]
284282
ldp x26, x27, [sp, #8 * REG_X26]
285283
ldp x28, x29, [sp, #8 * REG_X28]
284+
ldp x30, xzr, [sp, #8 * REG_X30]
286285

287286
add sp, sp, #8 * XCPTCONTEXT_GP_REGS
288287

0 commit comments

Comments
 (0)