HomeFreeBSD

arm64: Add PAC instruction macros

Description

arm64: Add PAC instruction macros

To support Pointer Authentication (PAC) in assembly files add a pair of
macros that sign the link register. When used before storing to the
stack it will allow hardware to detect if it has changed before using
it in the return instruction.

Reviewed by: markj, emaste
Sponsored by: Arm Ltd
Differential Revision: https://reviews.freebsd.org/D42226

(cherry picked from commit 2b39a6f68c3839454cd255b91978202cd995182a)

Details

Provenance
andrewAuthored on Oct 12 2023, 9:48 AM
Reviewer
markj
Differential Revision
D42226: arm64: Add PAC instruction macros
Parents
rG0d44915e06e5: arm64: Support creating a BTI & PAC note
Branches
Unknown
Tags
Unknown