1
0
mirror of https://sourceware.org/git/glibc.git synced 2025-07-29 11:41:21 +03:00

<sys/platform/x86.h>: Add Intel LAM support

Add Intel Linear Address Masking (LAM) support to <sys/platform/x86.h>.
HAS_CPU_FEATURE (LAM) can be used to detect if LAM is enabled in CPU.

LAM modifies the checking that is applied to 64-bit linear addresses,
allowing software to use of the untranslated address bits for metadata.
This commit is contained in:
H.J. Lu
2020-12-21 19:56:10 -08:00
parent bca0283815
commit a2e5da2cf4
3 changed files with 7 additions and 0 deletions

View File

@ -227,6 +227,7 @@ do_test (void)
CHECK_CPU_FEATURE (FSRS);
CHECK_CPU_FEATURE (FSRCS);
CHECK_CPU_FEATURE (HRESET);
CHECK_CPU_FEATURE (LAM);
CHECK_CPU_FEATURE (AESKLE);
CHECK_CPU_FEATURE (WIDE_KL);