diff options
author | Alexander Potapenko <glider@google.com> | 2022-07-13 19:04:38 -0700 |
---|---|---|
committer | Vitaly Buka <vitalybuka@google.com> | 2022-07-13 19:11:13 -0700 |
commit | b191056f44701a91c7cd7282e3ba82512d56391a (patch) | |
tree | d19f374a736d0453219248fc6700cbde15faf026 /clang/lib/Lex/ModuleMap.cpp | |
parent | cef07169ec9f46fd25291a3218cf12bef324ea0c (diff) | |
download | llvm-b191056f44701a91c7cd7282e3ba82512d56391a.zip llvm-b191056f44701a91c7cd7282e3ba82512d56391a.tar.gz llvm-b191056f44701a91c7cd7282e3ba82512d56391a.tar.bz2 |
[compiler-rt][hwasan] Support for new Intel LAM API
New version of Intel LAM patches
(https://lore.kernel.org/linux-mm/20220712231328.5294-1-kirill.shutemov@linux.intel.com/)
uses a different interface based on arch_prctl():
- arch_prctl(ARCH_GET_UNTAG_MASK, &mask) returns the current mask for
untagging the pointers. We use it to detect kernel LAM support.
- arch_prctl(ARCH_ENABLE_TAGGED_ADDR, nr_bits) enables pointer tagging
for the current process.
Because __NR_arch_prctl is defined in different headers, and no other
platforms need it at the moment, we only declare internal_arch_prctl()
on x86_64.
Reviewed By: vitalybuka
Differential Revision: https://reviews.llvm.org/D129645
Diffstat (limited to 'clang/lib/Lex/ModuleMap.cpp')
0 files changed, 0 insertions, 0 deletions