summaryrefslogtreecommitdiff
path: root/include/linux/mman.h
diff options
context:
space:
mode:
authorCatalin Marinas <catalin.marinas@arm.com>2019-11-27 12:53:44 +0300
committerCatalin Marinas <catalin.marinas@arm.com>2020-09-04 14:46:07 +0300
commit4d1a8a2dc0f4cdc2d74491a60709e698f85daf55 (patch)
tree86fcb21ff8feb64b59ffaf47756cb2c2353f13cb /include/linux/mman.h
parent738c8780fc1fa11fb996a962a54703d0450cae59 (diff)
downloadlinux-4d1a8a2dc0f4cdc2d74491a60709e698f85daf55.tar.xz
arm64: mte: Tags-aware aware memcmp_pages() implementation
When the Memory Tagging Extension is enabled, two pages are identical only if both their data and tags are identical. Make the generic memcmp_pages() a __weak function and add an arm64-specific implementation which returns non-zero if any of the two pages contain valid MTE tags (PG_mte_tagged set). There isn't much benefit in comparing the tags of two pages since these are normally used for heap allocations and likely to differ anyway. Co-developed-by: Vincenzo Frascino <vincenzo.frascino@arm.com> Signed-off-by: Vincenzo Frascino <vincenzo.frascino@arm.com> Signed-off-by: Catalin Marinas <catalin.marinas@arm.com> Cc: Will Deacon <will@kernel.org>
Diffstat (limited to 'include/linux/mman.h')
0 files changed, 0 insertions, 0 deletions