HomeFreeBSD

arm64: Support counter access with E2H

Description

arm64: Support counter access with E2H

When entering the kernel with the E2H field set the layout of the
cnthctl_el2 register changes. Use the correct field locations to enable
access to the counter and timer registers from EL1.

Sponsored by: Arm Ltd
Differential Revision: https://reviews.freebsd.org/D45529

(cherry picked from commit 997511dffe651e1d2d708f37f2ced430a6ab3349)

Details

Provenance
andrewAuthored on Jul 23 2024, 9:18 AM
Differential Revision
D45529: arm64: Support counter access with E2H
Parents
rG8b9f8a7e763d: arm64: Clear td_frame when returning to userspace
Branches
Unknown
Tags
Unknown