Skip to content

Commit

Permalink
elfloader: arm: fix incorrect sp when restoring
Browse files Browse the repository at this point in the history
bootloader parameters.

Signed-off-by: Tw <[email protected]>
  • Loading branch information
Tw authored and Andy Bui committed Feb 25, 2024
1 parent 0108b77 commit 7b3c2f3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion elfloader-tool/src/arch-arm/64/crt0.S
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ BEGIN_FUNC(_start)
bl fixup_image_base
mov x2, x0
/* restore original arguments for next step */
ldp x0, x1, [sp, #-16]!
ldp x0, x1, [sp], #16
/* fixup_image_base returns 1 if no need to move */
cmp x2, #1
beq 1f
Expand Down

0 comments on commit 7b3c2f3

Please sign in to comment.