Page MenuHomeFreeBSD

arm64: mte: cpu feature detection for FEAT_MTE/FEAT_MTE2
Needs ReviewPublic

Authored by andrew on Mar 19 2026, 4:07 PM.
Tags
None
Referenced Files
F156514275: D55960.diff
Thu, May 14, 7:44 AM
Unknown Object (File)
Mon, Apr 27, 5:21 PM
Unknown Object (File)
Mon, Apr 27, 1:54 PM
Unknown Object (File)
Sat, Apr 18, 10:54 AM
Unknown Object (File)
Sat, Apr 18, 7:18 AM
Unknown Object (File)
Fri, Apr 17, 3:21 AM
Unknown Object (File)
Wed, Apr 15, 12:48 AM
Unknown Object (File)
Apr 14 2026, 6:14 AM

Details

Reviewers
manu
Group Reviewers
arm64
Summary

Using the CPU feature detection framework, add a CPU_FEAT_EARLY_BOOT
check for the Memory Tagging Extension, and a HWCAP for FEAT_MTE.

Like Pointer Authentication (sys/arm64/arm64/ptrauth.c), MTE logic will
be kept within it's own file. In order to use the MTE registers and
instructions, this file needs the "-march=armv8.5+memtag" compiler flag.

Sponsored by: Arm Ltd
Signed-off-by: Harry Moulton <harry.moulton@arm.com>
Co-authored-by: Andrew Turner <andrew@FreeBSD.org>

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Skipped
Unit
Tests Skipped
Build Status
Buildable 71541
Build 68424: arc lint + arc unit