162306a36Sopenharmony_ci/* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ 262306a36Sopenharmony_ci#ifndef _ASM_X86_PRCTL_H 362306a36Sopenharmony_ci#define _ASM_X86_PRCTL_H 462306a36Sopenharmony_ci 562306a36Sopenharmony_ci#define ARCH_SET_GS 0x1001 662306a36Sopenharmony_ci#define ARCH_SET_FS 0x1002 762306a36Sopenharmony_ci#define ARCH_GET_FS 0x1003 862306a36Sopenharmony_ci#define ARCH_GET_GS 0x1004 962306a36Sopenharmony_ci 1062306a36Sopenharmony_ci#define ARCH_GET_CPUID 0x1011 1162306a36Sopenharmony_ci#define ARCH_SET_CPUID 0x1012 1262306a36Sopenharmony_ci 1362306a36Sopenharmony_ci#define ARCH_GET_XCOMP_SUPP 0x1021 1462306a36Sopenharmony_ci#define ARCH_GET_XCOMP_PERM 0x1022 1562306a36Sopenharmony_ci#define ARCH_REQ_XCOMP_PERM 0x1023 1662306a36Sopenharmony_ci#define ARCH_GET_XCOMP_GUEST_PERM 0x1024 1762306a36Sopenharmony_ci#define ARCH_REQ_XCOMP_GUEST_PERM 0x1025 1862306a36Sopenharmony_ci 1962306a36Sopenharmony_ci#define ARCH_XCOMP_TILECFG 17 2062306a36Sopenharmony_ci#define ARCH_XCOMP_TILEDATA 18 2162306a36Sopenharmony_ci 2262306a36Sopenharmony_ci#define ARCH_MAP_VDSO_X32 0x2001 2362306a36Sopenharmony_ci#define ARCH_MAP_VDSO_32 0x2002 2462306a36Sopenharmony_ci#define ARCH_MAP_VDSO_64 0x2003 2562306a36Sopenharmony_ci 2662306a36Sopenharmony_ci/* Don't use 0x3001-0x3004 because of old glibcs */ 2762306a36Sopenharmony_ci 2862306a36Sopenharmony_ci#define ARCH_GET_UNTAG_MASK 0x4001 2962306a36Sopenharmony_ci#define ARCH_ENABLE_TAGGED_ADDR 0x4002 3062306a36Sopenharmony_ci#define ARCH_GET_MAX_TAG_BITS 0x4003 3162306a36Sopenharmony_ci#define ARCH_FORCE_TAGGED_SVA 0x4004 3262306a36Sopenharmony_ci 3362306a36Sopenharmony_ci#define ARCH_SHSTK_ENABLE 0x5001 3462306a36Sopenharmony_ci#define ARCH_SHSTK_DISABLE 0x5002 3562306a36Sopenharmony_ci#define ARCH_SHSTK_LOCK 0x5003 3662306a36Sopenharmony_ci#define ARCH_SHSTK_UNLOCK 0x5004 3762306a36Sopenharmony_ci#define ARCH_SHSTK_STATUS 0x5005 3862306a36Sopenharmony_ci 3962306a36Sopenharmony_ci/* ARCH_SHSTK_ features bits */ 4062306a36Sopenharmony_ci#define ARCH_SHSTK_SHSTK (1ULL << 0) 4162306a36Sopenharmony_ci#define ARCH_SHSTK_WRSS (1ULL << 1) 4262306a36Sopenharmony_ci 4362306a36Sopenharmony_ci#endif /* _ASM_X86_PRCTL_H */ 44