Skip to content

Commit

Permalink
Morello: Don't trap Morello instructions in EL2 for the kernel under VHE
Browse files Browse the repository at this point in the history
  • Loading branch information
bsdjhb committed Nov 22, 2024
1 parent 424a25a commit 808fb2a
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions sys/arm64/arm64/locore.S
Original file line number Diff line number Diff line change
Expand Up @@ -563,7 +563,11 @@ LENTRY(enter_kernel_el)
isb

msr SCTLR_EL12_REG, x2
#if __has_feature(capabilities)
ldr x2, =(CPTR_E2H_CEN)
#else
mov x2, xzr /* CPTR_EL2 is managed by vfp.c */
#endif
ldr x3, =(CNTHCTL_E2H_EL1PCTEN | CNTHCTL_E2H_EL1PTEN)
ldr x5, =(PSR_DAIF | PSR_M_EL2h)
b .Ldone_vhe
Expand Down

0 comments on commit 808fb2a

Please sign in to comment.