diff options
| author | Alfonso Gregory <gfunni234@gmail.com> | 2023-07-04 19:10:19 +0000 |
|---|---|---|
| committer | Ed Maste <emaste@FreeBSD.org> | 2024-03-25 22:29:12 +0000 |
| commit | c9bd948da3c80726cffef37a31a5aac8fe06ef8b (patch) | |
| tree | 0b8a1f90d1a8fa732f8cbc50aff020db710a6241 | |
| parent | 3f89271794763da1200ee4182b5fe030570f72ba (diff) | |
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)
| -rw-r--r-- | sys/arm64/arm64/locore.S | 3 |
1 files changed, 1 insertions, 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 |
