The branch main has been updated by andrew:

URL: 
https://cgit.FreeBSD.org/src/commit/?id=05e834d5dae4c963f92cfb98720c358e1eb6e37e

commit 05e834d5dae4c963f92cfb98720c358e1eb6e37e
Author:     Andrew Turner <and...@freebsd.org>
AuthorDate: 2025-07-30 22:07:25 +0000
Commit:     Andrew Turner <and...@freebsd.org>
CommitDate: 2025-07-30 22:33:27 +0000

    arm64: Use xzr directly to set HCRX_EL2
    
    There is no need to zero another register, just use the zero register
    directly.
    
    Sponsored by:   Arm Ltd
    Differential Revision:  https://reviews.freebsd.org/D51378
---
 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 47c609fad523..f200195906ac 100644
--- a/sys/arm64/arm64/locore.S
+++ b/sys/arm64/arm64/locore.S
@@ -415,8 +415,7 @@ LENTRY(enter_kernel_el)
         */
        CHECK_CPU_FEAT(x2, ID_AA64MMFR1, HCX, IMPL, 2f)
        /* Extended Hypervisor Configuration */
-       mov x2, xzr
-       msr HCRX_EL2_REG, x2
+       msr     HCRX_EL2_REG, xzr
        isb
 2:
 

Reply via email to