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)
This commit is contained in:
Alfonso Gregory 2023-07-04 15:10:19 -04:00 committed by Ed Maste
parent 3f89271794
commit c9bd948da3

View file

@ -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