Elliott Hughes | 180edef | 2023-11-02 00:08:05 +0000 | [diff] [blame] | 1 | /* |
| 2 | * This file is auto-generated. Modifications will be lost. |
| 3 | * |
| 4 | * See https://android.googlesource.com/platform/bionic/+/master/libc/kernel/ |
| 5 | * for more information. |
| 6 | */ |
Elliott Hughes | abd6261 | 2013-11-08 11:45:48 -0800 | [diff] [blame] | 7 | #ifndef _ASM_X86_PRCTL_H |
| 8 | #define _ASM_X86_PRCTL_H |
| 9 | #define ARCH_SET_GS 0x1001 |
| 10 | #define ARCH_SET_FS 0x1002 |
Elliott Hughes | abd6261 | 2013-11-08 11:45:48 -0800 | [diff] [blame] | 11 | #define ARCH_GET_FS 0x1003 |
| 12 | #define ARCH_GET_GS 0x1004 |
Christopher Ferris | 525ce91 | 2017-07-26 13:12:53 -0700 | [diff] [blame] | 13 | #define ARCH_GET_CPUID 0x1011 |
| 14 | #define ARCH_SET_CPUID 0x1012 |
Christopher Ferris | a479261 | 2022-01-10 13:51:15 -0800 | [diff] [blame] | 15 | #define ARCH_GET_XCOMP_SUPP 0x1021 |
| 16 | #define ARCH_GET_XCOMP_PERM 0x1022 |
| 17 | #define ARCH_REQ_XCOMP_PERM 0x1023 |
Christopher Ferris | 1ed5534 | 2022-03-22 16:06:25 -0700 | [diff] [blame] | 18 | #define ARCH_GET_XCOMP_GUEST_PERM 0x1024 |
| 19 | #define ARCH_REQ_XCOMP_GUEST_PERM 0x1025 |
Christopher Ferris | 37c3f3c | 2023-07-10 10:59:05 -0700 | [diff] [blame] | 20 | #define ARCH_XCOMP_TILECFG 17 |
| 21 | #define ARCH_XCOMP_TILEDATA 18 |
Christopher Ferris | 6a9755d | 2017-01-13 14:09:31 -0800 | [diff] [blame] | 22 | #define ARCH_MAP_VDSO_X32 0x2001 |
| 23 | #define ARCH_MAP_VDSO_32 0x2002 |
Christopher Ferris | 6a9755d | 2017-01-13 14:09:31 -0800 | [diff] [blame] | 24 | #define ARCH_MAP_VDSO_64 0x2003 |
Christopher Ferris | 37c3f3c | 2023-07-10 10:59:05 -0700 | [diff] [blame] | 25 | #define ARCH_GET_UNTAG_MASK 0x4001 |
| 26 | #define ARCH_ENABLE_TAGGED_ADDR 0x4002 |
| 27 | #define ARCH_GET_MAX_TAG_BITS 0x4003 |
| 28 | #define ARCH_FORCE_TAGGED_SVA 0x4004 |
Christopher Ferris | 67d1e5e | 2023-10-31 13:36:37 -0700 | [diff] [blame] | 29 | #define ARCH_SHSTK_ENABLE 0x5001 |
| 30 | #define ARCH_SHSTK_DISABLE 0x5002 |
| 31 | #define ARCH_SHSTK_LOCK 0x5003 |
| 32 | #define ARCH_SHSTK_UNLOCK 0x5004 |
| 33 | #define ARCH_SHSTK_STATUS 0x5005 |
| 34 | #define ARCH_SHSTK_SHSTK (1ULL << 0) |
| 35 | #define ARCH_SHSTK_WRSS (1ULL << 1) |
Elliott Hughes | abd6261 | 2013-11-08 11:45:48 -0800 | [diff] [blame] | 36 | #endif |