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)
Wed, Nov 19, 4:09 AM
Unknown Object (File)
Sat, Nov 15, 11:02 PM
Unknown Object (File)
Thu, Nov 6, 12:31 AM
Unknown Object (File)
Thu, Oct 30, 1:48 AM
Unknown Object (File)
Thu, Oct 30, 1:46 AM
Unknown Object (File)
Wed, Oct 29, 10:46 PM
Unknown Object (File)
Wed, Oct 29, 6:33 PM
Unknown Object (File)
Sat, Oct 25, 5:39 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
rS FreeBSD src repository - subversion
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 40387
Build 37276: arc lint + arc unit

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.