x86-64: Update _dl_tlsdesc_dynamic to preserve AMX registers
[glibc.git] / sysdeps / unix / sysv / linux / x86_64 / include / asm / prctl.h
blobef4631bf4b2fd9aad3a225302124c814c3c7df08
1 /* FIXME: CET arch_prctl bits should come from the kernel header files.
2 This file should be removed if <asm/prctl.h> from the required kernel
3 header files contains CET arch_prctl bits. */
5 #include_next <asm/prctl.h>
7 #ifndef ARCH_SHSTK_ENABLE
8 /* Enable SHSTK features in unsigned long int features. */
9 # define ARCH_SHSTK_ENABLE 0x5001
10 /* Disable SHSTK features in unsigned long int features. */
11 # define ARCH_SHSTK_DISABLE 0x5002
12 /* Lock SHSTK features in unsigned long int features. */
13 # define ARCH_SHSTK_LOCK 0x5003
14 /* Unlock SHSTK features in unsigned long int features. */
15 # define ARCH_SHSTK_UNLOCK 0x5004
16 /* Return SHSTK features in unsigned long int features. */
17 # define ARCH_SHSTK_STATUS 0x5005
19 /* ARCH_SHSTK_ features bits */
20 # define ARCH_SHSTK_SHSTK 0x1
21 # define ARCH_SHSTK_WRSS 0x2
22 #endif
24 #ifndef ARCH_GET_XCOMP_PERM
25 # define ARCH_GET_XCOMP_PERM 0x1022
26 # define ARCH_REQ_XCOMP_PERM 0x1023
27 #endif