git: e1fe34707a60 - main - arm64: Save an instruction in locore.S
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Mon, 16 Oct 2023 19:56:39 UTC
The branch main has been updated by emaste:
URL: https://cgit.FreeBSD.org/src/commit/?id=e1fe34707a60b0f6cf47397c6eea0a39d675e3ac
commit e1fe34707a60b0f6cf47397c6eea0a39d675e3ac
Author: Alfonso Gregory <gfunni234@gmail.com>
AuthorDate: 2023-07-04 19:10:19 +0000
Commit: Ed Maste <emaste@FreeBSD.org>
CommitDate: 2023-10-16 19:54:41 +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
---
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 b592c753aa50..d55a21e9c55e 100644
--- a/sys/arm64/arm64/locore.S
+++ b/sys/arm64/arm64/locore.S
@@ -112,8 +112,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