Page MenuHomeFreeBSD

Update the arm64 HCR_EL2 registers
ClosedPublic

Authored by andrew on Jul 7 2021, 4:16 PM.
Tags
None
Referenced Files
Unknown Object (File)
Sat, Sep 20, 3:37 PM
Unknown Object (File)
Sep 6 2025, 3:22 AM
Unknown Object (File)
Sep 5 2025, 3:57 PM
Unknown Object (File)
Sep 4 2025, 11:17 AM
Unknown Object (File)
Aug 3 2025, 10:52 PM
Unknown Object (File)
Jul 28 2025, 3:34 AM
Unknown Object (File)
Jul 27 2025, 7:59 AM
Unknown Object (File)
Jul 26 2025, 1:17 PM
Subscribers

Details

Summary

They are valid as of the ARMv8.7 XML.

While here switch to use shifted values as they are easier to compare
with values in the Arm Reference Manual.

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

andrew requested review of this revision.Jul 7 2021, 4:16 PM
sys/arm64/include/hypervisor.h
5

Maybe "... developed in part ..." (or "Portions of this software...")?

Not really a big deal but much of this file predates any FF involvement, and this statement makes it sound as if the entirety is FF sponsored.

55–95

Is UL() typical (in reference docs or other arm64 files)? Examples like 1U << 3 below look more natural to me.

Update the sponsorship text

sys/arm64/include/hypervisor.h
55–95

It's because we can't use 1UL << 3 in assembly, and these macros are often needed there. The macro is defined in armreg.h

This revision was not accepted when it landed; it landed in state Needs Review.Jul 15 2021, 9:23 AM
This revision was automatically updated to reflect the committed changes.