git: c9bd948da3c8 - stable/14 - arm64: Save an instruction in locore.S
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Mon, 25 Mar 2024 22:29:31 UTC
The branch stable/14 has been updated by emaste:
URL: https://cgit.FreeBSD.org/src/commit/?id=c9bd948da3c80726cffef37a31a5aac8fe06ef8b
commit c9bd948da3c80726cffef37a31a5aac8fe06ef8b
Author: Alfonso Gregory <gfunni234@gmail.com>
AuthorDate: 2023-07-04 19:10:19 +0000
Commit: Ed Maste <emaste@FreeBSD.org>
CommitDate: 2024-03-25 22:29:12 +0000
arm64: Save an instruction in locore.S
We can move and sub at the same time, so let's do that.
Reviewed by: andrew, kevans
Pull Request: https://github.com/freebsd/freebsd-src/pull/794
(cherry picked from commit e1fe34707a60b0f6cf47397c6eea0a39d675e3ac)
---
sys/arm64/arm64/locore.S | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/sys/arm64/arm64/locore.S b/sys/arm64/arm64/locore.S
index f7e0b4023aed..a87d7add4149 100644
--- a/sys/arm64/arm64/locore.S
+++ b/sys/arm64/arm64/locore.S
@@ -116,8 +116,7 @@ virtdone:
/* Set up the stack */
adrp x25, initstack_end
add x25, x25, :lo12:initstack_end
- mov sp, x25
- sub sp, sp, #PCB_SIZE
+ sub sp, x25, #PCB_SIZE
/* Zero the BSS */
ldr x15, .Lbss