git: cf99898c4e87 - stable/13 - arm64: Rename drop_to_el1 to enter_kernel_el
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Mon, 15 Jul 2024 12:38:05 UTC
The branch stable/13 has been updated by andrew:
URL: https://cgit.FreeBSD.org/src/commit/?id=cf99898c4e8703174d6502b5690f5d68a8f37a5f
commit cf99898c4e8703174d6502b5690f5d68a8f37a5f
Author: Andrew Turner <andrew@FreeBSD.org>
AuthorDate: 2024-02-15 14:48:54 +0000
Commit: Andrew Turner <andrew@FreeBSD.org>
CommitDate: 2024-07-15 12:34:28 +0000
arm64: Rename drop_to_el1 to enter_kernel_el
In the future we may not drop to EL1, e.g. when we support FEAT_VHE
where the kernel runs in EL2.
Reviewed by: emaste, imp
Sponsored by: Arm Ltd
Differential Revision: https://reviews.freebsd.org/D43976
(cherry picked from commit 801160f4c0a3afbd136a1a6402c9ca233dfdc1eb)
---
sys/arm64/arm64/locore.S | 12 ++++++------
1 file changed, 6 insertions(+), 6 deletions(-)
diff --git a/sys/arm64/arm64/locore.S b/sys/arm64/arm64/locore.S
index a93c95b18f44..4bde1df945cb 100644
--- a/sys/arm64/arm64/locore.S
+++ b/sys/arm64/arm64/locore.S
@@ -49,8 +49,8 @@
*/
ENTRY(_start)
- /* Drop to EL1 */
- bl drop_to_el1
+ /* Enter the kernel exception level */
+ bl enter_kernel_el
/*
* Disable the MMU. We may have entered the kernel with it on and
@@ -176,8 +176,8 @@ ENTRY(mpentry)
/* Disable interrupts */
msr daifset, #DAIF_INTR
- /* Drop to EL1 */
- bl drop_to_el1
+ /* Enter the kernel exception level */
+ bl enter_kernel_el
/* Set the context id */
msr contextidr_el1, xzr
@@ -232,7 +232,7 @@ END(mpentry)
* If we are started in EL2, configure the required hypervisor
* registers and drop to EL1.
*/
-LENTRY(drop_to_el1)
+LENTRY(enter_kernel_el)
mrs x23, CurrentEL
lsr x23, x23, #2
cmp x23, #0x2
@@ -314,7 +314,7 @@ LENTRY(drop_to_el1)
.align 3
.Lsctlr_res1:
.quad SCTLR_RES1
-LEND(drop_to_el1)
+LEND(enter_kernel_el)
/*
* Get the delta between the physical address we were loaded to and the