]> git.ipfire.org Git - thirdparty/glibc.git/commit
<sys/platform/x86.h>: Add Intel Key Locker support
authorH.J. Lu <hjl.tools@gmail.com>
Tue, 15 Sep 2020 12:49:27 +0000 (05:49 -0700)
committerH.J. Lu <hjl.tools@gmail.com>
Wed, 16 Sep 2020 12:56:10 +0000 (05:56 -0700)
commitf2c679d4b2c73a95f437c705f960a4af1fa23498
tree1f30bd0a05a25caa79dda87c9330fb7c6de901bd
parenta140ff9162f353e804d6a8c83c8f3c18511850dd
<sys/platform/x86.h>: Add Intel Key Locker support

Add Intel Key Locker:

https://software.intel.com/content/www/us/en/develop/download/intel-key-locker-specification.html

support to <sys/platform/x86.h>.  Intel Key Locker has

1. KL: AES Key Locker instructions.
2. WIDE_KL: AES wide Key Locker instructions.
3. AESKLE: AES Key Locker instructions are enabled by OS.

Applications should use

if (CPU_FEATURE_USABLE (KL))

and

if (CPU_FEATURE_USABLE (WIDE_KL))

to check if AES Key Locker instructions and AES wide Key Locker
instructions are usable.
manual/platform.texi
sysdeps/x86/cpu-features.c
sysdeps/x86/sys/platform/x86.h
sysdeps/x86/tst-get-cpu-features.c