blob: 025d0ab967676fd77ac8ff59f45d5a2274ed5b6e [file] [log] [blame]
Elliott Hughes180edef2023-11-02 00:08:05 +00001/*
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 Hughesabd62612013-11-08 11:45:48 -08007#ifndef _ASM_X86_PRCTL_H
8#define _ASM_X86_PRCTL_H
9#define ARCH_SET_GS 0x1001
10#define ARCH_SET_FS 0x1002
Elliott Hughesabd62612013-11-08 11:45:48 -080011#define ARCH_GET_FS 0x1003
12#define ARCH_GET_GS 0x1004
Christopher Ferris525ce912017-07-26 13:12:53 -070013#define ARCH_GET_CPUID 0x1011
14#define ARCH_SET_CPUID 0x1012
Christopher Ferrisa4792612022-01-10 13:51:15 -080015#define ARCH_GET_XCOMP_SUPP 0x1021
16#define ARCH_GET_XCOMP_PERM 0x1022
17#define ARCH_REQ_XCOMP_PERM 0x1023
Christopher Ferris1ed55342022-03-22 16:06:25 -070018#define ARCH_GET_XCOMP_GUEST_PERM 0x1024
19#define ARCH_REQ_XCOMP_GUEST_PERM 0x1025
Christopher Ferris37c3f3c2023-07-10 10:59:05 -070020#define ARCH_XCOMP_TILECFG 17
21#define ARCH_XCOMP_TILEDATA 18
Christopher Ferris6a9755d2017-01-13 14:09:31 -080022#define ARCH_MAP_VDSO_X32 0x2001
23#define ARCH_MAP_VDSO_32 0x2002
Christopher Ferris6a9755d2017-01-13 14:09:31 -080024#define ARCH_MAP_VDSO_64 0x2003
Christopher Ferris37c3f3c2023-07-10 10:59:05 -070025#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 Ferris67d1e5e2023-10-31 13:36:37 -070029#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 Hughesabd62612013-11-08 11:45:48 -080036#endif