aarch64: Move and update the definition of MTE_ENABLED
commitc3c4a25e651d4d78b1751664a613807b7140ed7e
authorSzabolcs Nagy <szabolcs.nagy@arm.com>
Fri, 22 Jan 2021 16:14:05 +0000 (22 16:14 +0000)
committerSzabolcs Nagy <szabolcs.nagy@arm.com>
Mon, 25 Jan 2021 15:35:43 +0000 (25 15:35 +0000)
tree34706a538d61e100227da580e9e99200ca4ffeb7
parent31f64887222597bb15b7a814d8dadb7cb667bcb9
aarch64: Move and update the definition of MTE_ENABLED

The hwcap value is now in linux 5.10 and in glibc bits/hwcap.h, so use
that definition.

Move the definition to init-arch.h so all ifunc selectors can use it
and expose an "mte" shorthand for mte enabled runtime.

For now we allow user code to enable tag checks and use PROT_MTE
mappings without libc involvment, this is not guaranteed ABI, but
can be useful for testing and debugging with MTE.
sysdeps/aarch64/multiarch/init-arch.h
sysdeps/aarch64/multiarch/strlen.c