Page MenuHomeFreeBSD

arm64: Use the PAN msr mnemonic rather than .inst
ClosedPublic

Authored by andrew on Nov 27 2024, 6:12 PM.
Tags
None
Referenced Files
Unknown Object (File)
Wed, Dec 25, 4:15 PM
Unknown Object (File)
Thu, Dec 12, 8:06 PM
Unknown Object (File)
Wed, Dec 11, 4:51 PM
Unknown Object (File)
Nov 30 2024, 9:12 PM
Unknown Object (File)
Nov 28 2024, 5:18 AM
Unknown Object (File)
Nov 28 2024, 5:18 AM
Unknown Object (File)
Nov 28 2024, 5:01 AM
Subscribers

Details

Summary

Switch from creating the msr instructions to manage PAN to use the
"msr pan, #1" instruction directly. When this was added clang didn't
have support to assemble the instructions. This appears to have been
added to clang 13 which is sufficiently old enough.

Binutils releases from around the same time appear to have added this
instruction so any modern gcc should also support this instruction.

Sponsored by: Arm Ltd

Diff Detail

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